*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> SSL_CTX_set_trust (3)              
Title
Content
Arch
Section
 

SSL_CTX_set_trust(3)

Contents


NAME    [Toc]    [Back]

       SSL_CTX_set_trust  -  Set  a  trust  value  to the SSL_CTX
       structure

SYNOPSIS    [Toc]    [Back]

       #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    [Toc]    [Back]

       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: #define X509_TRUST_COMPAT
       #define           X509_TRUST_SSL_CLIENT            #define
       X509_TRUST_SSL_SERVER   #define  X509_TRUST_EMAIL  #define
       X509_TRUST_OBJECT_SIGN

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

RETURN VALUES    [Toc]    [Back]

       The following return values can occur: The trust value was
       set  successfully  in  the SSL_CTX structure.  Setting the
       trust value in the SSL_CTX structure failed.

SEE ALSO    [Toc]    [Back]

      
      
       Functions:SSL_set_trust(3)



                                             SSL_CTX_set_trust(3)
[ Back ]
 Similar pages
Name OS Title
SSL_CTX_get_cert_store Tru64 Get the X509_STORE structure in the SSL_CTX structure
SSL_CTX_set_purpose Tru64 Set a purpose value to the SSL_CTX structure
SSL_CTX_get_quiet_shutdown Tru64 Get the value of the quietshutdown flag in the SSL_CTX data structure
SSL_set_trust Tru64 sets a trust value to the SSL structure
SSL_get_SSL_CTX OpenBSD get the SSL_CTX from which an SSL is created
SSL_get_SSL_CTX Tru64 Get the SSL_CTX from which an SSL is created
SSL_get_SSL_CTX NetBSD get the SSL_CTX from which an SSL is created
SSL_CTX_free Tru64 Free an allocated SSL_CTX object
SSL_CTX_free OpenBSD free an allocated SSL_CTX object
SSL_CTX_free NetBSD free an allocated SSL_CTX object
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service