Changeset 105945 in vbox for trunk/src/libs/openssl-3.1.7/crypto/pkcs12/p12_crt.c
- Timestamp:
- Sep 4, 2024 11:32:47 AM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 164679
- Location:
- trunk/src/libs/openssl-3.1.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.1.7
- Property svn:mergeinfo
-
old new 25 25 /vendor/openssl/3.0.3:151497-151729 26 26 /vendor/openssl/3.0.7:154371 27 /vendor/openssl/3.1.7:164675-164677
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.1.7/crypto/pkcs12/p12_crt.c
r104078 r105945 1 1 /* 2 * Copyright 1999-202 3The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 1999-2024 The OpenSSL Project Authors. All Rights Reserved. 3 3 * 4 4 * Licensed under the Apache License 2.0 (the "License"). You may not use … … 214 214 goto err; 215 215 if (nid_key != -1) { 216 /* This call does not take ownership of p8 */ 216 217 bag = PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(nid_key, pass, -1, NULL, 0, 217 218 iter, p8, ctx, propq); 219 } else { 220 bag = PKCS12_SAFEBAG_create0_p8inf(p8); 221 if (bag != NULL) 222 p8 = NULL; /* bag takes ownership of p8 */ 223 } 224 /* This does not need to be in the error path */ 225 if (p8 != NULL) 218 226 PKCS8_PRIV_KEY_INFO_free(p8); 219 } else 220 bag = PKCS12_SAFEBAG_create0_p8inf(p8); 221 222 if (!bag) 223 goto err; 224 225 if (!pkcs12_add_bag(pbags, bag)) 227 228 if (bag == NULL || !pkcs12_add_bag(pbags, bag)) 226 229 goto err; 227 230
Note:
See TracChangeset
for help on using the changeset viewer.