diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-19 15:22:33 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-04-19 18:48:22 +0900 |
commit | 4e35e83d561145a11ec839b1e21946f1c1cc69b3 (patch) | |
tree | f5b9e24d55bb0a22a1b3f59177e4c92983f65193 /crypto | |
parent | 76f2554a10abdc340b9bbc0782260a411b4d2045 (diff) | |
download | openssl-4e35e83d561145a11ec839b1e21946f1c1cc69b3.tar.gz |
Remove code duplicationfix/x509-store-remove-old
Remove duplicated ctx->verify_cb = store->verify_cb; in
X509_STORE_CTX_init().
Remove duplicated function prototype of X509_STORE_CTX_set_verify_cb().
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/x509/x509_vfy.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index efa6bcaa67..8f8847da91 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -2161,11 +2161,10 @@ int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, /* Zero ex_data to make sure we're cleanup-safe */ memset(&ctx->ex_data, 0, sizeof(ctx->ex_data)); - if (store) { - ctx->verify_cb = store->verify_cb; - /* Seems to always be 0 in OpenSSL, else must be idempotent */ + /* Seems to always be 0 in OpenSSL, else must be idempotent */ + if (store && ctx->cleanup) ctx->cleanup = store->cleanup; - } else + else ctx->cleanup = 0; if (store && store->check_issued) |