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

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

SSL_set_purpose(3)

Contents


NAME    [Toc]    [Back]

       SSL_set_purpose - Set a purpose value to the SSL structure

SYNOPSIS    [Toc]    [Back]

       #include  <openssl/ssl.h>  #include  <openssl/x509v3.h>(to
       use the macros for purpose values)

       int SSL_set_purpose(
               SSL *s,
               int purpose );

DESCRIPTION    [Toc]    [Back]

       The SSL_set_purpose() function sets a purpose value in the
       SSL structure.  The purpose values and  their  macros  are
       defined   in   x509v3.h   as  follows:  #define  X509_PURPOSE_SSL_CLIENT
  1   #define   X509_PURPOSE_SSL_SERVER   2
       #define  X509_PURPOSE_NS_SSL_SERVER  3  #define  X509_PURPOSE_SMIME_SIGN
  4  #define  X509_PURPOSE_SMIME_ENCRYPT  5
       #define X509_PURPOSE_CRL_SIGN 6 #define X509_PURPOSE_ANY 7

       The purpose value must be between 1 and 7.  If an  out-ofrange
  value is passed, SSL_set_purpose() returns 0.  Upon
       success, 1 is returned.

RETURN VALUES    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

      
      
       Functions: SSL_CTX_set_purpose(3)



                                               SSL_set_purpose(3)
[ Back ]
 Similar pages
Name OS Title
SSL_CTX_set_purpose Tru64 Set a purpose value to the SSL_CTX structure
ALgetconfig IRIX (obsolete) get/set the ALconfig structure of an audio ALport structure
SSL_CTX_get_cert_store Tru64 Get the X509_STORE structure in the SSL_CTX structure
DSA_dup_DH OpenBSD create a DH structure out of DSA structure
DSA_dup_DH Tru64 Create a DH structure out of DSA structure
DSA_dup_DH NetBSD create a DH structure out of DSA structure
i2d_DHparams Tru64 Purpose to be supplied.
i2d_RSAPublicKey Tru64 Purpose to be supplied.
d2i_Netscape_RSA Tru64 Purpose to be supplied.
d2i_DHparams Tru64 Purpose to be supplied.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service