summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-10-18 14:42:27 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-10-18 14:42:27 +0000
commitc679fb298ea8a94764a594d07b97823c4615ea4e (patch)
treef3b6d23ff241108c6690de30a6495b1d1014937e /apps
parent17c7cad5458758a2b1a574718bf9e1f58a00a0c2 (diff)
Add new function X509_STORE_set_verify_cb and use it in apps
Diffstat (limited to 'apps')
-rw-r--r--apps/cms.c2
-rw-r--r--apps/smime.c2
-rw-r--r--apps/ts.c2
-rw-r--r--apps/verify.c2
-rw-r--r--apps/x509.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/apps/cms.c b/apps/cms.c
index 3adcd78a9d..d29a884902 100644
--- a/apps/cms.c
+++ b/apps/cms.c
@@ -880,7 +880,7 @@ int MAIN(int argc, char **argv)
{
if (!(store = setup_verify(bio_err, CAfile, CApath)))
goto end;
- X509_STORE_set_verify_cb_func(store, cms_cb);
+ X509_STORE_set_verify_cb(store, cms_cb);
if (vpm)
X509_STORE_set1_param(store, vpm);
}
diff --git a/apps/smime.c b/apps/smime.c
index 67df0667b6..c583f8a0e1 100644
--- a/apps/smime.c
+++ b/apps/smime.c
@@ -671,7 +671,7 @@ int MAIN(int argc, char **argv)
{
if (!(store = setup_verify(bio_err, CAfile, CApath)))
goto end;
- X509_STORE_set_verify_cb_func(store, smime_cb);
+ X509_STORE_set_verify_cb(store, smime_cb);
if (vpm)
X509_STORE_set1_param(store, vpm);
}
diff --git a/apps/ts.c b/apps/ts.c
index bedb602fd5..5fa9f7fda0 100644
--- a/apps/ts.c
+++ b/apps/ts.c
@@ -1083,7 +1083,7 @@ static X509_STORE *create_cert_store(char *ca_path, char *ca_file)
cert_ctx = X509_STORE_new();
/* Setting the callback for certificate chain verification. */
- X509_STORE_set_verify_cb_func(cert_ctx, verify_cb);
+ X509_STORE_set_verify_cb(cert_ctx, verify_cb);
/* Adding a trusted certificate directory source. */
if (ca_path)
diff --git a/apps/verify.c b/apps/verify.c
index 838ac46827..96fcfb429d 100644
--- a/apps/verify.c
+++ b/apps/verify.c
@@ -93,7 +93,7 @@ int MAIN(int argc, char **argv)
cert_ctx=X509_STORE_new();
if (cert_ctx == NULL) goto end;
- X509_STORE_set_verify_cb_func(cert_ctx,cb);
+ X509_STORE_set_verify_cb(cert_ctx,cb);
ERR_load_crypto_strings();
diff --git a/apps/x509.c b/apps/x509.c
index 72d104bf09..0be3414d34 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -225,7 +225,7 @@ int MAIN(int argc, char **argv)
ctx=X509_STORE_new();
if (ctx == NULL) goto end;
- X509_STORE_set_verify_cb_func(ctx,callb);
+ X509_STORE_set_verify_cb(ctx,callb);
argc--;
argv++;