diff options
Diffstat (limited to 'deps/openssl/openssl/demos/cms/cms_ddec.c')
-rw-r--r-- | deps/openssl/openssl/demos/cms/cms_ddec.c | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/deps/openssl/openssl/demos/cms/cms_ddec.c b/deps/openssl/openssl/demos/cms/cms_ddec.c index 37ac97fd01..8f2e9aecb2 100644 --- a/deps/openssl/openssl/demos/cms/cms_ddec.c +++ b/deps/openssl/openssl/demos/cms/cms_ddec.c @@ -1,4 +1,13 @@ /* + * 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 + */ + +/* * S/MIME detached data decrypt example: rarely done but should the need * arise this is an example.... */ @@ -68,22 +77,12 @@ 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); - if (dcont) - BIO_free(dcont); - + CMS_ContentInfo_free(cms); + X509_free(rcert); + EVP_PKEY_free(rkey); + BIO_free(in); + BIO_free(out); + BIO_free(tbio); + BIO_free(dcont); return ret; - } |