Index Index for
Section 3
Index Alphabetical
listing for S
Bottom of page Bottom of
page

SSL_set_trust(3)

NAME

SSL_set_trust - sets a trust value to the SSL structure

SYNOPSIS

#include <openssl/ssl.h> #include <openssl/x509.h>(to use the macros of trust values) int SSL_set_trust( SSL *s, int trust );

DESCRIPTION

The SSL_set_trust() function sets a trust value in the SSL structure. The trust values and their macros are defined in x509v3.h as follows: #define X509_TRUST_COMPAT 1 #define X509_TRUST_SSL_CLIENT 2 #define X509_TRUST_SSL_SERVER 3 #define X509_TRUST_EMAIL 4 #define X509_TRUST_OBJECT_SIGN 5 The trust value must be between 1 and 5. If an out-of-range value is passed, the SSL_set_trust() function returns 0. Upon success, 1 is returned.

RETURN VALUES

The following return values can occur: 1 The trust value was successfully set in the SSL structure. 0 Seting the trust value in the SSL structure failed.

SEE ALSO

Functions: SSL_CTX_set_trust(3)

Index Index for
Section 3
Index Alphabetical
listing for S
Top of page Top of
page