srp.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. /*
  2. * WARNING: do not edit!
  3. * Generated by Makefile from include/openssl/srp.h.in
  4. *
  5. * Copyright 2004-2021 The OpenSSL Project Authors. All Rights Reserved.
  6. * Copyright (c) 2004, EdelKey Project. All Rights Reserved.
  7. *
  8. * Licensed under the Apache License 2.0 (the "License"). You may not use
  9. * this file except in compliance with the License. You can obtain a copy
  10. * in the file LICENSE in the source distribution or at
  11. * https://www.openssl.org/source/license.html
  12. *
  13. * Originally written by Christophe Renou and Peter Sylvester,
  14. * for the EdelKey project.
  15. */
  16. #ifndef OPENSSL_SRP_H
  17. # define OPENSSL_SRP_H
  18. # pragma once
  19. # include <openssl/macros.h>
  20. # ifndef OPENSSL_NO_DEPRECATED_3_0
  21. # define HEADER_SRP_H
  22. # endif
  23. #include <openssl/opensslconf.h>
  24. #ifndef OPENSSL_NO_SRP
  25. # include <stdio.h>
  26. # include <string.h>
  27. # include <openssl/safestack.h>
  28. # include <openssl/bn.h>
  29. # include <openssl/crypto.h>
  30. # ifdef __cplusplus
  31. extern "C" {
  32. # endif
  33. # ifndef OPENSSL_NO_DEPRECATED_3_0
  34. typedef struct SRP_gN_cache_st {
  35. char *b64_bn;
  36. BIGNUM *bn;
  37. } SRP_gN_cache;
  38. SKM_DEFINE_STACK_OF_INTERNAL(SRP_gN_cache, SRP_gN_cache, SRP_gN_cache)
  39. #define sk_SRP_gN_cache_num(sk) OPENSSL_sk_num(ossl_check_const_SRP_gN_cache_sk_type(sk))
  40. #define sk_SRP_gN_cache_value(sk, idx) ((SRP_gN_cache *)OPENSSL_sk_value(ossl_check_const_SRP_gN_cache_sk_type(sk), (idx)))
  41. #define sk_SRP_gN_cache_new(cmp) ((STACK_OF(SRP_gN_cache) *)OPENSSL_sk_new(ossl_check_SRP_gN_cache_compfunc_type(cmp)))
  42. #define sk_SRP_gN_cache_new_null() ((STACK_OF(SRP_gN_cache) *)OPENSSL_sk_new_null())
  43. #define sk_SRP_gN_cache_new_reserve(cmp, n) ((STACK_OF(SRP_gN_cache) *)OPENSSL_sk_new_reserve(ossl_check_SRP_gN_cache_compfunc_type(cmp), (n)))
  44. #define sk_SRP_gN_cache_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_SRP_gN_cache_sk_type(sk), (n))
  45. #define sk_SRP_gN_cache_free(sk) OPENSSL_sk_free(ossl_check_SRP_gN_cache_sk_type(sk))
  46. #define sk_SRP_gN_cache_zero(sk) OPENSSL_sk_zero(ossl_check_SRP_gN_cache_sk_type(sk))
  47. #define sk_SRP_gN_cache_delete(sk, i) ((SRP_gN_cache *)OPENSSL_sk_delete(ossl_check_SRP_gN_cache_sk_type(sk), (i)))
  48. #define sk_SRP_gN_cache_delete_ptr(sk, ptr) ((SRP_gN_cache *)OPENSSL_sk_delete_ptr(ossl_check_SRP_gN_cache_sk_type(sk), ossl_check_SRP_gN_cache_type(ptr)))
  49. #define sk_SRP_gN_cache_push(sk, ptr) OPENSSL_sk_push(ossl_check_SRP_gN_cache_sk_type(sk), ossl_check_SRP_gN_cache_type(ptr))
  50. #define sk_SRP_gN_cache_unshift(sk, ptr) OPENSSL_sk_unshift(ossl_check_SRP_gN_cache_sk_type(sk), ossl_check_SRP_gN_cache_type(ptr))
  51. #define sk_SRP_gN_cache_pop(sk) ((SRP_gN_cache *)OPENSSL_sk_pop(ossl_check_SRP_gN_cache_sk_type(sk)))
  52. #define sk_SRP_gN_cache_shift(sk) ((SRP_gN_cache *)OPENSSL_sk_shift(ossl_check_SRP_gN_cache_sk_type(sk)))
  53. #define sk_SRP_gN_cache_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_SRP_gN_cache_sk_type(sk),ossl_check_SRP_gN_cache_freefunc_type(freefunc))
  54. #define sk_SRP_gN_cache_insert(sk, ptr, idx) OPENSSL_sk_insert(ossl_check_SRP_gN_cache_sk_type(sk), ossl_check_SRP_gN_cache_type(ptr), (idx))
  55. #define sk_SRP_gN_cache_set(sk, idx, ptr) ((SRP_gN_cache *)OPENSSL_sk_set(ossl_check_SRP_gN_cache_sk_type(sk), (idx), ossl_check_SRP_gN_cache_type(ptr)))
  56. #define sk_SRP_gN_cache_find(sk, ptr) OPENSSL_sk_find(ossl_check_SRP_gN_cache_sk_type(sk), ossl_check_SRP_gN_cache_type(ptr))
  57. #define sk_SRP_gN_cache_find_ex(sk, ptr) OPENSSL_sk_find_ex(ossl_check_SRP_gN_cache_sk_type(sk), ossl_check_SRP_gN_cache_type(ptr))
  58. #define sk_SRP_gN_cache_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_SRP_gN_cache_sk_type(sk), ossl_check_SRP_gN_cache_type(ptr), pnum)
  59. #define sk_SRP_gN_cache_sort(sk) OPENSSL_sk_sort(ossl_check_SRP_gN_cache_sk_type(sk))
  60. #define sk_SRP_gN_cache_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_SRP_gN_cache_sk_type(sk))
  61. #define sk_SRP_gN_cache_dup(sk) ((STACK_OF(SRP_gN_cache) *)OPENSSL_sk_dup(ossl_check_const_SRP_gN_cache_sk_type(sk)))
  62. #define sk_SRP_gN_cache_deep_copy(sk, copyfunc, freefunc) ((STACK_OF(SRP_gN_cache) *)OPENSSL_sk_deep_copy(ossl_check_const_SRP_gN_cache_sk_type(sk), ossl_check_SRP_gN_cache_copyfunc_type(copyfunc), ossl_check_SRP_gN_cache_freefunc_type(freefunc)))
  63. #define sk_SRP_gN_cache_set_cmp_func(sk, cmp) ((sk_SRP_gN_cache_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_SRP_gN_cache_sk_type(sk), ossl_check_SRP_gN_cache_compfunc_type(cmp)))
  64. typedef struct SRP_user_pwd_st {
  65. /* Owned by us. */
  66. char *id;
  67. BIGNUM *s;
  68. BIGNUM *v;
  69. /* Not owned by us. */
  70. const BIGNUM *g;
  71. const BIGNUM *N;
  72. /* Owned by us. */
  73. char *info;
  74. } SRP_user_pwd;
  75. SKM_DEFINE_STACK_OF_INTERNAL(SRP_user_pwd, SRP_user_pwd, SRP_user_pwd)
  76. #define sk_SRP_user_pwd_num(sk) OPENSSL_sk_num(ossl_check_const_SRP_user_pwd_sk_type(sk))
  77. #define sk_SRP_user_pwd_value(sk, idx) ((SRP_user_pwd *)OPENSSL_sk_value(ossl_check_const_SRP_user_pwd_sk_type(sk), (idx)))
  78. #define sk_SRP_user_pwd_new(cmp) ((STACK_OF(SRP_user_pwd) *)OPENSSL_sk_new(ossl_check_SRP_user_pwd_compfunc_type(cmp)))
  79. #define sk_SRP_user_pwd_new_null() ((STACK_OF(SRP_user_pwd) *)OPENSSL_sk_new_null())
  80. #define sk_SRP_user_pwd_new_reserve(cmp, n) ((STACK_OF(SRP_user_pwd) *)OPENSSL_sk_new_reserve(ossl_check_SRP_user_pwd_compfunc_type(cmp), (n)))
  81. #define sk_SRP_user_pwd_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_SRP_user_pwd_sk_type(sk), (n))
  82. #define sk_SRP_user_pwd_free(sk) OPENSSL_sk_free(ossl_check_SRP_user_pwd_sk_type(sk))
  83. #define sk_SRP_user_pwd_zero(sk) OPENSSL_sk_zero(ossl_check_SRP_user_pwd_sk_type(sk))
  84. #define sk_SRP_user_pwd_delete(sk, i) ((SRP_user_pwd *)OPENSSL_sk_delete(ossl_check_SRP_user_pwd_sk_type(sk), (i)))
  85. #define sk_SRP_user_pwd_delete_ptr(sk, ptr) ((SRP_user_pwd *)OPENSSL_sk_delete_ptr(ossl_check_SRP_user_pwd_sk_type(sk), ossl_check_SRP_user_pwd_type(ptr)))
  86. #define sk_SRP_user_pwd_push(sk, ptr) OPENSSL_sk_push(ossl_check_SRP_user_pwd_sk_type(sk), ossl_check_SRP_user_pwd_type(ptr))
  87. #define sk_SRP_user_pwd_unshift(sk, ptr) OPENSSL_sk_unshift(ossl_check_SRP_user_pwd_sk_type(sk), ossl_check_SRP_user_pwd_type(ptr))
  88. #define sk_SRP_user_pwd_pop(sk) ((SRP_user_pwd *)OPENSSL_sk_pop(ossl_check_SRP_user_pwd_sk_type(sk)))
  89. #define sk_SRP_user_pwd_shift(sk) ((SRP_user_pwd *)OPENSSL_sk_shift(ossl_check_SRP_user_pwd_sk_type(sk)))
  90. #define sk_SRP_user_pwd_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_SRP_user_pwd_sk_type(sk),ossl_check_SRP_user_pwd_freefunc_type(freefunc))
  91. #define sk_SRP_user_pwd_insert(sk, ptr, idx) OPENSSL_sk_insert(ossl_check_SRP_user_pwd_sk_type(sk), ossl_check_SRP_user_pwd_type(ptr), (idx))
  92. #define sk_SRP_user_pwd_set(sk, idx, ptr) ((SRP_user_pwd *)OPENSSL_sk_set(ossl_check_SRP_user_pwd_sk_type(sk), (idx), ossl_check_SRP_user_pwd_type(ptr)))
  93. #define sk_SRP_user_pwd_find(sk, ptr) OPENSSL_sk_find(ossl_check_SRP_user_pwd_sk_type(sk), ossl_check_SRP_user_pwd_type(ptr))
  94. #define sk_SRP_user_pwd_find_ex(sk, ptr) OPENSSL_sk_find_ex(ossl_check_SRP_user_pwd_sk_type(sk), ossl_check_SRP_user_pwd_type(ptr))
  95. #define sk_SRP_user_pwd_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_SRP_user_pwd_sk_type(sk), ossl_check_SRP_user_pwd_type(ptr), pnum)
  96. #define sk_SRP_user_pwd_sort(sk) OPENSSL_sk_sort(ossl_check_SRP_user_pwd_sk_type(sk))
  97. #define sk_SRP_user_pwd_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_SRP_user_pwd_sk_type(sk))
  98. #define sk_SRP_user_pwd_dup(sk) ((STACK_OF(SRP_user_pwd) *)OPENSSL_sk_dup(ossl_check_const_SRP_user_pwd_sk_type(sk)))
  99. #define sk_SRP_user_pwd_deep_copy(sk, copyfunc, freefunc) ((STACK_OF(SRP_user_pwd) *)OPENSSL_sk_deep_copy(ossl_check_const_SRP_user_pwd_sk_type(sk), ossl_check_SRP_user_pwd_copyfunc_type(copyfunc), ossl_check_SRP_user_pwd_freefunc_type(freefunc)))
  100. #define sk_SRP_user_pwd_set_cmp_func(sk, cmp) ((sk_SRP_user_pwd_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_SRP_user_pwd_sk_type(sk), ossl_check_SRP_user_pwd_compfunc_type(cmp)))
  101. OSSL_DEPRECATEDIN_3_0
  102. SRP_user_pwd *SRP_user_pwd_new(void);
  103. OSSL_DEPRECATEDIN_3_0
  104. void SRP_user_pwd_free(SRP_user_pwd *user_pwd);
  105. OSSL_DEPRECATEDIN_3_0
  106. void SRP_user_pwd_set_gN(SRP_user_pwd *user_pwd, const BIGNUM *g,
  107. const BIGNUM *N);
  108. OSSL_DEPRECATEDIN_3_0
  109. int SRP_user_pwd_set1_ids(SRP_user_pwd *user_pwd, const char *id,
  110. const char *info);
  111. OSSL_DEPRECATEDIN_3_0
  112. int SRP_user_pwd_set0_sv(SRP_user_pwd *user_pwd, BIGNUM *s, BIGNUM *v);
  113. typedef struct SRP_VBASE_st {
  114. STACK_OF(SRP_user_pwd) *users_pwd;
  115. STACK_OF(SRP_gN_cache) *gN_cache;
  116. /* to simulate a user */
  117. char *seed_key;
  118. const BIGNUM *default_g;
  119. const BIGNUM *default_N;
  120. } SRP_VBASE;
  121. /*
  122. * Internal structure storing N and g pair
  123. */
  124. typedef struct SRP_gN_st {
  125. char *id;
  126. const BIGNUM *g;
  127. const BIGNUM *N;
  128. } SRP_gN;
  129. SKM_DEFINE_STACK_OF_INTERNAL(SRP_gN, SRP_gN, SRP_gN)
  130. #define sk_SRP_gN_num(sk) OPENSSL_sk_num(ossl_check_const_SRP_gN_sk_type(sk))
  131. #define sk_SRP_gN_value(sk, idx) ((SRP_gN *)OPENSSL_sk_value(ossl_check_const_SRP_gN_sk_type(sk), (idx)))
  132. #define sk_SRP_gN_new(cmp) ((STACK_OF(SRP_gN) *)OPENSSL_sk_new(ossl_check_SRP_gN_compfunc_type(cmp)))
  133. #define sk_SRP_gN_new_null() ((STACK_OF(SRP_gN) *)OPENSSL_sk_new_null())
  134. #define sk_SRP_gN_new_reserve(cmp, n) ((STACK_OF(SRP_gN) *)OPENSSL_sk_new_reserve(ossl_check_SRP_gN_compfunc_type(cmp), (n)))
  135. #define sk_SRP_gN_reserve(sk, n) OPENSSL_sk_reserve(ossl_check_SRP_gN_sk_type(sk), (n))
  136. #define sk_SRP_gN_free(sk) OPENSSL_sk_free(ossl_check_SRP_gN_sk_type(sk))
  137. #define sk_SRP_gN_zero(sk) OPENSSL_sk_zero(ossl_check_SRP_gN_sk_type(sk))
  138. #define sk_SRP_gN_delete(sk, i) ((SRP_gN *)OPENSSL_sk_delete(ossl_check_SRP_gN_sk_type(sk), (i)))
  139. #define sk_SRP_gN_delete_ptr(sk, ptr) ((SRP_gN *)OPENSSL_sk_delete_ptr(ossl_check_SRP_gN_sk_type(sk), ossl_check_SRP_gN_type(ptr)))
  140. #define sk_SRP_gN_push(sk, ptr) OPENSSL_sk_push(ossl_check_SRP_gN_sk_type(sk), ossl_check_SRP_gN_type(ptr))
  141. #define sk_SRP_gN_unshift(sk, ptr) OPENSSL_sk_unshift(ossl_check_SRP_gN_sk_type(sk), ossl_check_SRP_gN_type(ptr))
  142. #define sk_SRP_gN_pop(sk) ((SRP_gN *)OPENSSL_sk_pop(ossl_check_SRP_gN_sk_type(sk)))
  143. #define sk_SRP_gN_shift(sk) ((SRP_gN *)OPENSSL_sk_shift(ossl_check_SRP_gN_sk_type(sk)))
  144. #define sk_SRP_gN_pop_free(sk, freefunc) OPENSSL_sk_pop_free(ossl_check_SRP_gN_sk_type(sk),ossl_check_SRP_gN_freefunc_type(freefunc))
  145. #define sk_SRP_gN_insert(sk, ptr, idx) OPENSSL_sk_insert(ossl_check_SRP_gN_sk_type(sk), ossl_check_SRP_gN_type(ptr), (idx))
  146. #define sk_SRP_gN_set(sk, idx, ptr) ((SRP_gN *)OPENSSL_sk_set(ossl_check_SRP_gN_sk_type(sk), (idx), ossl_check_SRP_gN_type(ptr)))
  147. #define sk_SRP_gN_find(sk, ptr) OPENSSL_sk_find(ossl_check_SRP_gN_sk_type(sk), ossl_check_SRP_gN_type(ptr))
  148. #define sk_SRP_gN_find_ex(sk, ptr) OPENSSL_sk_find_ex(ossl_check_SRP_gN_sk_type(sk), ossl_check_SRP_gN_type(ptr))
  149. #define sk_SRP_gN_find_all(sk, ptr, pnum) OPENSSL_sk_find_all(ossl_check_SRP_gN_sk_type(sk), ossl_check_SRP_gN_type(ptr), pnum)
  150. #define sk_SRP_gN_sort(sk) OPENSSL_sk_sort(ossl_check_SRP_gN_sk_type(sk))
  151. #define sk_SRP_gN_is_sorted(sk) OPENSSL_sk_is_sorted(ossl_check_const_SRP_gN_sk_type(sk))
  152. #define sk_SRP_gN_dup(sk) ((STACK_OF(SRP_gN) *)OPENSSL_sk_dup(ossl_check_const_SRP_gN_sk_type(sk)))
  153. #define sk_SRP_gN_deep_copy(sk, copyfunc, freefunc) ((STACK_OF(SRP_gN) *)OPENSSL_sk_deep_copy(ossl_check_const_SRP_gN_sk_type(sk), ossl_check_SRP_gN_copyfunc_type(copyfunc), ossl_check_SRP_gN_freefunc_type(freefunc)))
  154. #define sk_SRP_gN_set_cmp_func(sk, cmp) ((sk_SRP_gN_compfunc)OPENSSL_sk_set_cmp_func(ossl_check_SRP_gN_sk_type(sk), ossl_check_SRP_gN_compfunc_type(cmp)))
  155. OSSL_DEPRECATEDIN_3_0
  156. SRP_VBASE *SRP_VBASE_new(char *seed_key);
  157. OSSL_DEPRECATEDIN_3_0
  158. void SRP_VBASE_free(SRP_VBASE *vb);
  159. OSSL_DEPRECATEDIN_3_0
  160. int SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file);
  161. OSSL_DEPRECATEDIN_3_0
  162. int SRP_VBASE_add0_user(SRP_VBASE *vb, SRP_user_pwd *user_pwd);
  163. /* NOTE: unlike in SRP_VBASE_get_by_user, caller owns the returned pointer.*/
  164. OSSL_DEPRECATEDIN_3_0
  165. SRP_user_pwd *SRP_VBASE_get1_by_user(SRP_VBASE *vb, char *username);
  166. OSSL_DEPRECATEDIN_3_0
  167. char *SRP_create_verifier_ex(const char *user, const char *pass, char **salt,
  168. char **verifier, const char *N, const char *g,
  169. OSSL_LIB_CTX *libctx, const char *propq);
  170. OSSL_DEPRECATEDIN_3_0
  171. char *SRP_create_verifier(const char *user, const char *pass, char **salt,
  172. char **verifier, const char *N, const char *g);
  173. OSSL_DEPRECATEDIN_3_0
  174. int SRP_create_verifier_BN_ex(const char *user, const char *pass, BIGNUM **salt,
  175. BIGNUM **verifier, const BIGNUM *N,
  176. const BIGNUM *g, OSSL_LIB_CTX *libctx,
  177. const char *propq);
  178. OSSL_DEPRECATEDIN_3_0
  179. int SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt,
  180. BIGNUM **verifier, const BIGNUM *N,
  181. const BIGNUM *g);
  182. # define SRP_NO_ERROR 0
  183. # define SRP_ERR_VBASE_INCOMPLETE_FILE 1
  184. # define SRP_ERR_VBASE_BN_LIB 2
  185. # define SRP_ERR_OPEN_FILE 3
  186. # define SRP_ERR_MEMORY 4
  187. # define DB_srptype 0
  188. # define DB_srpverifier 1
  189. # define DB_srpsalt 2
  190. # define DB_srpid 3
  191. # define DB_srpgN 4
  192. # define DB_srpinfo 5
  193. # undef DB_NUMBER
  194. # define DB_NUMBER 6
  195. # define DB_SRP_INDEX 'I'
  196. # define DB_SRP_VALID 'V'
  197. # define DB_SRP_REVOKED 'R'
  198. # define DB_SRP_MODIF 'v'
  199. /* see srp.c */
  200. OSSL_DEPRECATEDIN_3_0
  201. char *SRP_check_known_gN_param(const BIGNUM *g, const BIGNUM *N);
  202. OSSL_DEPRECATEDIN_3_0
  203. SRP_gN *SRP_get_default_gN(const char *id);
  204. /* server side .... */
  205. OSSL_DEPRECATEDIN_3_0
  206. BIGNUM *SRP_Calc_server_key(const BIGNUM *A, const BIGNUM *v, const BIGNUM *u,
  207. const BIGNUM *b, const BIGNUM *N);
  208. OSSL_DEPRECATEDIN_3_0
  209. BIGNUM *SRP_Calc_B_ex(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,
  210. const BIGNUM *v, OSSL_LIB_CTX *libctx, const char *propq);
  211. OSSL_DEPRECATEDIN_3_0
  212. BIGNUM *SRP_Calc_B(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,
  213. const BIGNUM *v);
  214. OSSL_DEPRECATEDIN_3_0
  215. int SRP_Verify_A_mod_N(const BIGNUM *A, const BIGNUM *N);
  216. OSSL_DEPRECATEDIN_3_0
  217. BIGNUM *SRP_Calc_u_ex(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N,
  218. OSSL_LIB_CTX *libctx, const char *propq);
  219. OSSL_DEPRECATEDIN_3_0
  220. BIGNUM *SRP_Calc_u(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N);
  221. /* client side .... */
  222. OSSL_DEPRECATEDIN_3_0
  223. BIGNUM *SRP_Calc_x_ex(const BIGNUM *s, const char *user, const char *pass,
  224. OSSL_LIB_CTX *libctx, const char *propq);
  225. OSSL_DEPRECATEDIN_3_0
  226. BIGNUM *SRP_Calc_x(const BIGNUM *s, const char *user, const char *pass);
  227. OSSL_DEPRECATEDIN_3_0
  228. BIGNUM *SRP_Calc_A(const BIGNUM *a, const BIGNUM *N, const BIGNUM *g);
  229. OSSL_DEPRECATEDIN_3_0
  230. BIGNUM *SRP_Calc_client_key_ex(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g,
  231. const BIGNUM *x, const BIGNUM *a, const BIGNUM *u,
  232. OSSL_LIB_CTX *libctx, const char *propq);
  233. OSSL_DEPRECATEDIN_3_0
  234. BIGNUM *SRP_Calc_client_key(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g,
  235. const BIGNUM *x, const BIGNUM *a, const BIGNUM *u);
  236. OSSL_DEPRECATEDIN_3_0
  237. int SRP_Verify_B_mod_N(const BIGNUM *B, const BIGNUM *N);
  238. # define SRP_MINIMAL_N 1024
  239. # endif /* OPENSSL_NO_DEPRECATED_3_0 */
  240. /* This method ignores the configured seed and fails for an unknown user. */
  241. # ifndef OPENSSL_NO_DEPRECATED_1_1_0
  242. OSSL_DEPRECATEDIN_1_1_0
  243. SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username);
  244. # endif
  245. # ifdef __cplusplus
  246. }
  247. # endif
  248. # endif
  249. #endif