diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-05-06 07:30:13 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-05-06 07:30:13 +0000 |
commit | e0e44245a7f5e1b5a0f35df557ac015e9e143bc1 (patch) | |
tree | ecca55a17f77ab9db958c1f3486aa59fb5335b7b /lib/gnutls_srp.h | |
parent | c2fd5ac55082c85394c5d37c2a59fb1fb503a205 (diff) | |
download | gnutls-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.h | 8 |
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 |