Changeset 94404 in vbox for trunk/src/libs/openssl-3.0.2/demos/smime/smver.c
- Timestamp:
- Mar 31, 2022 9:00:36 AM (3 years ago)
- 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/demos/smime/smver.c
r94082 r94404 28 28 29 29 st = X509_STORE_new(); 30 if (st == NULL) 31 goto err; 30 32 31 33 /* Read in signer certificate and private key */ 32 34 tbio = BIO_new_file("cacert.pem", "r"); 33 35 34 if ( !tbio)36 if (tbio == NULL) 35 37 goto err; 36 38 37 39 cacert = PEM_read_bio_X509(tbio, NULL, 0, NULL); 38 40 39 if ( !cacert)41 if (cacert == NULL) 40 42 goto err; 41 43 … … 47 49 in = BIO_new_file("smout.txt", "r"); 48 50 49 if ( !in)51 if (in == NULL) 50 52 goto err; 51 53 … … 53 55 p7 = SMIME_read_PKCS7(in, &cont); 54 56 55 if ( !p7)57 if (p7 == NULL) 56 58 goto err; 57 59 58 60 /* File to output verified content to */ 59 61 out = BIO_new_file("smver.txt", "w"); 60 if ( !out)62 if (out == NULL) 61 63 goto err; 62 64 … … 75 77 ERR_print_errors_fp(stderr); 76 78 } 79 80 X509_STORE_free(st); 77 81 PKCS7_free(p7); 78 82 X509_free(cacert);
Note:
See TracChangeset
for help on using the changeset viewer.