diff options
Diffstat (limited to 'deps/openssl/openssl/demos/cms/cms_dec.c')
-rw-r--r-- | deps/openssl/openssl/demos/cms/cms_dec.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/deps/openssl/openssl/demos/cms/cms_dec.c b/deps/openssl/openssl/demos/cms/cms_dec.c index 3291eacab4..4f9428b4e7 100644 --- a/deps/openssl/openssl/demos/cms/cms_dec.c +++ b/deps/openssl/openssl/demos/cms/cms_dec.c @@ -1,3 +1,12 @@ +/* + * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the OpenSSL license (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + /* Simple S/MIME decryption example */ #include <openssl/pem.h> #include <openssl/cms.h> @@ -59,20 +68,11 @@ int main(int argc, char **argv) ERR_print_errors_fp(stderr); } - if (cms) - CMS_ContentInfo_free(cms); - if (rcert) - X509_free(rcert); - if (rkey) - EVP_PKEY_free(rkey); - - if (in) - BIO_free(in); - if (out) - BIO_free(out); - if (tbio) - BIO_free(tbio); - + CMS_ContentInfo_free(cms); + X509_free(rcert); + EVP_PKEY_free(rkey); + BIO_free(in); + BIO_free(out); + BIO_free(tbio); return ret; - } |