summaryrefslogtreecommitdiff
path: root/lib/auth/srp_kx.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/auth/srp_kx.h')
-rw-r--r--lib/auth/srp_kx.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/auth/srp_kx.h b/lib/auth/srp_kx.h
index e4431ee28e..ebe1477e02 100644
--- a/lib/auth/srp_kx.h
+++ b/lib/auth/srp_kx.h
@@ -25,6 +25,8 @@
#include <auth.h>
+#define MAX_FAKE_SALT_SEED_SIZE 64
+
typedef struct gnutls_srp_client_credentials_st {
char *username;
char *password;
@@ -38,7 +40,9 @@ typedef struct gnutls_srp_server_credentials_st {
* password files.
*/
gnutls_srp_server_credentials_function *pwd_callback;
- gnutls_datum_t fake_salt_seed;
+ unsigned char fake_salt_seed[MAX_FAKE_SALT_SEED_SIZE];
+ unsigned int fake_salt_seed_size;
+
unsigned int fake_salt_length;
} srp_server_cred_st;