diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-06-14 18:00:12 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-06-14 18:00:12 +0000 |
commit | a6faedd8a31bf97ef3c64286ef4230e2ed0ebaac (patch) | |
tree | 2707d156b396f20f7520fdf9cb4c85a0690170b9 /lib/auth_srp.c | |
parent | e0ae420bf74ef6afc08735c0a5538f0a376b7bf3 (diff) | |
download | gnutls-a6faedd8a31bf97ef3c64286ef4230e2ed0ebaac.tar.gz |
better handling of set/get credentials.
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; |