Use more desciptive macro name rsa_pss_restricted()
[openssl.git] / demos / smime / smver.c
index 4088d3c38e3fa9b39443cbb67dd304d57cba6f3c..75411c40d01595a8974ccc1039a13095b4ea1593 100644 (file)
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2007-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 verification example */
 #include <openssl/pem.h>
 #include <openssl/pkcs7.h>
@@ -61,22 +70,14 @@ int main(int argc, char **argv)
     ret = 0;
 
  err:
-
     if (ret) {
         fprintf(stderr, "Error Verifying Data\n");
         ERR_print_errors_fp(stderr);
     }
-
-    if (p7)
-        PKCS7_free(p7);
-
-    if (cacert)
-        X509_free(cacert);
-
+    PKCS7_free(p7);
+    X509_free(cacert);
     BIO_free(in);
     BIO_free(out);
     BIO_free(tbio);
-
     return ret;
-
 }