Changeset 94404 in vbox for trunk/src/libs/openssl-3.0.2/test/helpers/handshake_srp.c
- Timestamp:
- Mar 31, 2022 9:00:36 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150730
- Location:
- trunk/src/libs/openssl-3.0.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.0.2
- Property svn:mergeinfo
-
old new 13 13 /vendor/openssl/1.1.1k:145841-145843 14 14 /vendor/openssl/3.0.1:150323-150324 15 /vendor/openssl/current:147554-150322 15 /vendor/openssl/3.0.2:150728-150729 16 /vendor/openssl/current:147554-150727
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.0.2/test/helpers/handshake_srp.c
r94320 r94404 1 1 /* 2 * Copyright 2016-202 1The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 2016-2022 The OpenSSL Project Authors. All Rights Reserved. 3 3 * 4 4 * Licensed under the Apache License 2.0 (the "License"). You may not use … … 50 50 server_ctx_data->srp_user = OPENSSL_strdup(extra->server.srp_user); 51 51 server_ctx_data->srp_password = OPENSSL_strdup(extra->server.srp_password); 52 if (server_ctx_data->srp_user == NULL || server_ctx_data->srp_password == NULL) { 53 OPENSSL_free(server_ctx_data->srp_user); 54 OPENSSL_free(server_ctx_data->srp_password); 55 server_ctx_data->srp_user = NULL; 56 server_ctx_data->srp_password = NULL; 57 return 0; 58 } 52 59 SSL_CTX_set_srp_cb_arg(server_ctx, server_ctx_data); 53 60 } … … 58 65 server2_ctx_data->srp_user = OPENSSL_strdup(extra->server2.srp_user); 59 66 server2_ctx_data->srp_password = OPENSSL_strdup(extra->server2.srp_password); 67 if (server2_ctx_data->srp_user == NULL || server2_ctx_data->srp_password == NULL) { 68 OPENSSL_free(server2_ctx_data->srp_user); 69 OPENSSL_free(server2_ctx_data->srp_password); 70 server2_ctx_data->srp_user = NULL; 71 server2_ctx_data->srp_password = NULL; 72 return 0; 73 } 60 74 SSL_CTX_set_srp_cb_arg(server2_ctx, server2_ctx_data); 61 75 } … … 66 80 SSL_CTX_set_srp_client_pwd_callback(client_ctx, client_srp_cb); 67 81 client_ctx_data->srp_password = OPENSSL_strdup(extra->client.srp_password); 82 if (client_ctx_data->srp_password == NULL) 83 return 0; 68 84 SSL_CTX_set_srp_cb_arg(client_ctx, client_ctx_data); 69 85 }
Note:
See TracChangeset
for help on using the changeset viewer.