diff --git a/dlls/bcrypt/gnutls.c b/dlls/bcrypt/gnutls.c index 6afa558..37d5c33 100644 --- a/dlls/bcrypt/gnutls.c +++ b/dlls/bcrypt/gnutls.c @@ -1031,7 +1031,7 @@ NTSTATUS get_gnutls_ecc_key_params( int ret; - if ((ret = pgnutls_privkey_export_ecc_raw( key->u.a.handle, &curve, x, y, d ))) + if ((ret = pgnutls_privkey_export_ecc_raw( key->u.a.handle, curve, x, y, d ))) { FIXME("pgnutls_privkey_export_ecc_raw: %s\n", pgnutls_strerror(ret)); return STATUS_INTERNAL_ERROR; diff --git a/dlls/bcrypt/secrets.c b/dlls/bcrypt/secrets.c index a3f7922..c8a88f0 100644 --- a/dlls/bcrypt/secrets.c +++ b/dlls/bcrypt/secrets.c @@ -24,6 +24,11 @@ #include #include + +#include +NTSTATUS get_gnutls_ecc_key_params(BCRYPT_KEY_HANDLE hKey, + gnutls_ecc_curve_t *curve, + gnutls_datum_t *x, gnutls_datum_t *y, gnutls_datum_t *d); #include #include #include @@ -236,8 +241,8 @@ int ecc_sign( return -1; } - BIGNUM *r = NULL; - BIGNUM *s = NULL; + const BIGNUM *r = NULL; + const BIGNUM *s = NULL; pECDSA_SIG_get0(sig, &r, &s); diff --git a/dlls/crypt32/crypt32_private.h b/dlls/crypt32/crypt32_private.h index 3d0129e..d92eb1a 100644 --- a/dlls/crypt32/crypt32_private.h +++ b/dlls/crypt32/crypt32_private.h @@ -152,7 +152,7 @@ BOOL WINAPI CRYPT_AsnEncodePubKeyInfoNoNull(DWORD dwCertEncodingType, */ HCRYPTPROV WINAPI I_CryptGetDefaultCryptProv(ALG_ID); -HINSTANCE hInstance DECLSPEC_HIDDEN; +extern HINSTANCE hInstance DECLSPEC_HIDDEN; void crypt_oid_init(void) DECLSPEC_HIDDEN; void crypt_oid_free(void) DECLSPEC_HIDDEN;