diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-11-29 22:35:00 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-11-29 22:35:00 +0000 |
commit | bb7cd4e3ebb9c1114b7fb6f6d0e4c280ef984889 (patch) | |
tree | eaaa4cf77dfbc5b6eb6d6e8277fbdfd6cf8c4f28 /crypto/x509 | |
parent | 13938acecae8f1b455812d0388e2891abd1c096d (diff) | |
download | openssl-bb7cd4e3ebb9c1114b7fb6f6d0e4c280ef984889.tar.gz |
Remainder of SSL purpose and trust code: trust and purpose setting in
SSL_CTX and SSL, functions to set them and defaults if no values set.
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/x509_vfy.c | 4 | ||||
-rw-r--r-- | crypto/x509/x509_vfy.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 11f462f461..2668bd1959 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -732,9 +732,9 @@ int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose) return X509_STORE_CTX_purpose_inherit(ctx, 0, purpose, 0); } -void X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust) +int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust) { - ctx->trust = trust; + return X509_STORE_CTX_purpose_inherit(ctx, 0, 0, trust); } /* This function is used to set the X509_STORE_CTX purpose and trust diff --git a/crypto/x509/x509_vfy.h b/crypto/x509/x509_vfy.h index 822d9c7ea6..3e97df14ee 100644 --- a/crypto/x509/x509_vfy.h +++ b/crypto/x509/x509_vfy.h @@ -350,7 +350,7 @@ STACK_OF(X509) *X509_STORE_CTX_get_chain(X509_STORE_CTX *ctx); void X509_STORE_CTX_set_cert(X509_STORE_CTX *c,X509 *x); void X509_STORE_CTX_set_chain(X509_STORE_CTX *c,STACK_OF(X509) *sk); int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose); -void X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust); +int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust); int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose, int purpose, int trust); |