summaryrefslogtreecommitdiff
path: root/lib/gnutls_srp.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-05-06 07:30:13 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-05-06 07:30:13 +0000
commite0e44245a7f5e1b5a0f35df557ac015e9e143bc1 (patch)
treeecca55a17f77ab9db958c1f3486aa59fb5335b7b /lib/gnutls_srp.h
parentc2fd5ac55082c85394c5d37c2a59fb1fb503a205 (diff)
downloadgnutls-e0e44245a7f5e1b5a0f35df557ac015e9e143bc1.tar.gz
more srp related fixes. No longer fails authentication if wrong username
is provided.
Diffstat (limited to 'lib/gnutls_srp.h')
-rw-r--r--lib/gnutls_srp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/gnutls_srp.h b/lib/gnutls_srp.h
index 03ea949d30..5e89797c94 100644
--- a/lib/gnutls_srp.h
+++ b/lib/gnutls_srp.h
@@ -3,5 +3,11 @@ MPI _gnutls_calc_srp_B(MPI * ret_b, MPI g, MPI n, MPI v);
MPI _gnutls_calc_srp_u( MPI B);
MPI _gnutls_calc_srp_S1(MPI A, MPI b, MPI u, MPI v, MPI n);
MPI _gnutls_calc_srp_A(MPI *a, MPI g, MPI n);
-void* _gnutls_calc_srp_x( char* username, char* password, opaque* salt, int salt_size, int crypt_algo);
MPI _gnutls_calc_srp_S2(MPI B, MPI g, MPI x, MPI a, MPI u, MPI n);
+void* _gnutls_calc_srp_x( char* username, char* password, opaque* salt, int salt_size, uint8 crypt_algo);
+
+/* our prime */
+extern const uint8 diffie_hellman_group1_prime[130];
+
+/* g is defined to be 2 */
+#define SRP_G 2