Deleted Added
full compact
smver.c (1.1.1.2) smver.c (1.1.1.3)
1/*
2 * Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
1/* Simple S/MIME verification example */
2#include <openssl/pem.h>
3#include <openssl/pkcs7.h>
4#include <openssl/err.h>
5
6int main(int argc, char **argv)
7{
8 BIO *in = NULL, *out = NULL, *tbio = NULL, *cont = NULL;

--- 47 unchanged lines hidden (view full) ---

56 goto err;
57 }
58
59 fprintf(stderr, "Verification Successful\n");
60
61 ret = 0;
62
63 err:
10/* Simple S/MIME verification example */
11#include <openssl/pem.h>
12#include <openssl/pkcs7.h>
13#include <openssl/err.h>
14
15int main(int argc, char **argv)
16{
17 BIO *in = NULL, *out = NULL, *tbio = NULL, *cont = NULL;

--- 47 unchanged lines hidden (view full) ---

65 goto err;
66 }
67
68 fprintf(stderr, "Verification Successful\n");
69
70 ret = 0;
71
72 err:
64
65 if (ret) {
66 fprintf(stderr, "Error Verifying Data\n");
67 ERR_print_errors_fp(stderr);
68 }
73 if (ret) {
74 fprintf(stderr, "Error Verifying Data\n");
75 ERR_print_errors_fp(stderr);
76 }
69
70 if (p7)
71 PKCS7_free(p7);
72
73 if (cacert)
74 X509_free(cacert);
75
76 if (in)
77 BIO_free(in);
78 if (out)
79 BIO_free(out);
80 if (tbio)
81 BIO_free(tbio);
82
77 PKCS7_free(p7);
78 X509_free(cacert);
79 BIO_free(in);
80 BIO_free(out);
81 BIO_free(tbio);
83 return ret;
82 return ret;
84
85}
83}