diff options
author | Matt Caswell <matt@openssl.org> | 2020-03-20 18:24:51 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-03-27 12:29:26 +0100 |
commit | 20c00d0a0a1ba63f41890db67b32df6f3f69cd0d (patch) | |
tree | 8de6642a2a4e8e1b2659263802681c77ae0207f1 /test/sslapitest.c | |
parent | Update libssl to use the new library context aware SRP functions (diff) | |
download | openssl-20c00d0a0a1ba63f41890db67b32df6f3f69cd0d.tar.xz openssl-20c00d0a0a1ba63f41890db67b32df6f3f69cd0d.zip |
Use the new library context aware SRP functions in sslapitest
For the moment this still just uses the default library context, but a
future version of sslapitest will specify a non-default library context.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11410)
Diffstat (limited to 'test/sslapitest.c')
-rw-r--r-- | test/sslapitest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sslapitest.c b/test/sslapitest.c index a9b7d20b3c..7956353f49 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -5533,8 +5533,8 @@ static int create_new_vfile(char *userid, char *password, const char *filename) if (!TEST_ptr(dummy) || !TEST_ptr(row)) goto end; - gNid = SRP_create_verifier(userid, password, &row[DB_srpsalt], - &row[DB_srpverifier], NULL, NULL); + gNid = SRP_create_verifier_ex(userid, password, &row[DB_srpsalt], + &row[DB_srpverifier], NULL, NULL, NULL, NULL); if (!TEST_ptr(gNid)) goto end; @@ -5590,8 +5590,8 @@ static int create_new_vbase(char *userid, char *password) if (!TEST_ptr(lgN)) goto end; - if (!TEST_true(SRP_create_verifier_BN(userid, password, &salt, &verifier, - lgN->N, lgN->g))) + if (!TEST_true(SRP_create_verifier_BN_ex(userid, password, &salt, &verifier, + lgN->N, lgN->g, NULL, NULL))) goto end; user_pwd = OPENSSL_zalloc(sizeof(*user_pwd)); |