diff options
Diffstat (limited to 'lib/auth_srp.c')
-rw-r--r-- | lib/auth_srp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/auth_srp.c b/lib/auth_srp.c index ba513f5e49..fe3e03fe16 100644 --- a/lib/auth_srp.c +++ b/lib/auth_srp.c @@ -189,8 +189,8 @@ int gen_srp_client_kx0(GNUTLS_KEY key, opaque ** data) uint8 *data_a; char *username; char *password; - SRP_CLIENT_CREDENTIALS *cred = - _gnutls_get_kx_cred(key, GNUTLS_KX_SRP, NULL); + const SRP_CLIENT_CREDENTIALS *cred = + _gnutls_get_cred(key, GNUTLS_SRP, NULL); if (cred == NULL) return GNUTLS_E_INSUFICIENT_CRED; @@ -231,8 +231,8 @@ int proc_srp_server_kx(GNUTLS_KEY key, opaque * data, int data_size) opaque *hd; char *username; char *password; - SRP_CLIENT_CREDENTIALS *cred = - _gnutls_get_kx_cred(key, GNUTLS_KX_SRP, NULL); + const SRP_CLIENT_CREDENTIALS *cred = + _gnutls_get_cred(key, GNUTLS_SRP, NULL); if (cred == NULL) return GNUTLS_E_INSUFICIENT_CRED; |