X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=demos%2Fcms%2Fcms_sign2.c;h=14ebf27775203430ea0fd6e210ab628e851be3cc;hb=c352bd07ed2ff872876534c950a6968d75ef121e;hp=127f5860ee28a8998cec1620a060f12274dcf75f;hpb=222561fe8ef510f336417a666f69f81ddc9b8fe4;p=openssl.git diff --git a/demos/cms/cms_sign2.c b/demos/cms/cms_sign2.c index 127f5860ee..14ebf27775 100644 --- a/demos/cms/cms_sign2.c +++ b/demos/cms/cms_sign2.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 + */ + /* S/MIME signing example: 2 signers */ #include #include @@ -77,9 +86,7 @@ int main(int argc, char **argv) ERR_print_errors_fp(stderr); } - if (cms) - CMS_ContentInfo_free(cms); - + CMS_ContentInfo_free(cms); X509_free(scert); EVP_PKEY_free(skey); X509_free(scert2); @@ -87,7 +94,5 @@ int main(int argc, char **argv) BIO_free(in); BIO_free(out); BIO_free(tbio); - return ret; - }