Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ SSL_CTX_set_trust(3) — Tru64 UNIX 5.1b

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Functions:SSL_set_trust(3)

SSL_CTX_set_trust(3)  —  Subroutines

NAME

SSL_CTX_set_trust − Set a trust value to the SSL_CTX structure

SYNOPSIS

#include <openssl/ssl.h>
#include <openssl/x509.h> (to use the macros of trust values) int SSL_CTX_set_trust(
        SSL_CTX ∗s,
        int trust );

DESCRIPTION

The SSL_CTX_set_trust() function sets a trust value in the SSL_CTX structure.  The trust values and their macros are defined in x509v3.h as follows:

     1.#define X509_TRUST_COMPAT

     2.#define X509_TRUST_SSL_CLIENT

     3.#define X509_TRUST_SSL_SERVER

     4.#define X509_TRUST_EMAIL

     5.#define X509_TRUST_OBJECT_SIGN

The trust value must be between 1 and 5.  If an out-of-range value is passed, the SSL_CTX_set_trust() function returns 0.  Upon success, 1 is returned. 

RETURN VALUES

The following return values can occur:

1The trust value was set successfully in the SSL_CTX structure. 

0Setting the trust value in the SSL_CTX structure failed. 

SEE ALSO

Functions:SSL_set_trust(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026