![]() |
![]() |
![]() |
GnuTLS API Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define GNUTLS_X509_CN_SIZE #define GNUTLS_X509_C_SIZE #define GNUTLS_X509_O_SIZE #define GNUTLS_X509_OU_SIZE #define GNUTLS_X509_L_SIZE #define GNUTLS_X509_S_SIZE #define GNUTLS_X509_EMAIL_SIZE #define OPENSSL_VERSION_NUMBER #define SSLEAY_VERSION_NUMBER #define OPENSSL_VERSION_TEXT #define SSL_ERROR_NONE #define SSL_ERROR_SSL #define SSL_ERROR_WANT_READ #define SSL_ERROR_WANT_WRITE #define SSL_ERROR_SYSCALL #define SSL_ERROR_ZERO_RETURN #define SSL_FILETYPE_PEM #define SSL_VERIFY_NONE #define SSL_ST_OK #define X509_V_ERR_CERT_NOT_YET_VALID #define X509_V_ERR_CERT_HAS_EXPIRED #define X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT #define SSL_OP_ALL #define SSL_OP_NO_TLSv1 #define SSL_MODE_ENABLE_PARTIAL_WRITE #define SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER #define SSL_MODE_AUTO_RETRY typedef X509_NAME; typedef X509; SSL; #define current_cert #define X509_STORE_CTX_get_current_cert (ctx) int (*verify_callback) (...
,X509_STORE_CTX *Param2
); #define rbio struct rsa_st; typedef RSA; #define MD5_CTX #define RIPEMD160_CTX #define OpenSSL_add_ssl_algorithms #define SSLeay_add_ssl_algorithms #define SSLeay_add_all_algorithms #define SSL_get_cipher_name (ssl) #define SSL_get_cipher (ssl) #define SSL_get_cipher_bits (ssl, bp) #define SSL_get_cipher_version (ssl) int SSL_library_init (void
); void OpenSSL_add_all_algorithms (void
); SSL_CTX * SSL_CTX_new (SSL_METHOD *method
); void SSL_CTX_free (SSL_CTX *ctx
); int SSL_CTX_set_default_verify_paths (SSL_CTX *ctx
); int SSL_CTX_use_certificate_file (SSL_CTX *ctx
,const char *certfile
,int type
); int SSL_CTX_use_PrivateKey_file (SSL_CTX *ctx
,const char *keyfile
,int type
); void SSL_CTX_set_verify (SSL_CTX *ctx
,int verify_mode
,int (verify_callbackint, X509_STORE_CTX *) ()
); unsigned long SSL_CTX_set_options (SSL_CTX *ctx
,unsigned long options
); long SSL_CTX_set_mode (SSL_CTX *ctx
,long mode Param2
); int SSL_CTX_set_cipher_list (SSL_CTX *ctx
,const char *list
); long SSL_CTX_sess_number (SSL_CTX *ctx
); long SSL_CTX_sess_connect (SSL_CTX *ctx
); long SSL_CTX_sess_connect_good (SSL_CTX *ctx
); long SSL_CTX_sess_connect_renegotiate (SSL_CTX *ctx
); long SSL_CTX_sess_accept (SSL_CTX *ctx
); long SSL_CTX_sess_accept_good (SSL_CTX *ctx
); long SSL_CTX_sess_accept_renegotiate (SSL_CTX *ctx
); long SSL_CTX_sess_hits (SSL_CTX *ctx
); long SSL_CTX_sess_misses (SSL_CTX *ctx
); long SSL_CTX_sess_timeouts (SSL_CTX *ctx
); SSL * SSL_new (SSL_CTX *ctx
); void SSL_free (SSL *ssl
); void SSL_load_error_strings (void
); int SSL_get_error (SSL *ssl
,int ret
); int SSL_set_fd (SSL *ssl
,int fd
); int SSL_set_rfd (SSL *ssl
,int fd
); int SSL_set_wfd (SSL *ssl
,int fd
); void SSL_set_bio (SSL *ssl
,BIO *rbio
,BIO *wbio
); void SSL_set_connect_state (SSL *ssl
); int SSL_pending (SSL *ssl
); void SSL_set_verify (SSL *ssl
,int verify_mode
,int (verify_callbackint, X509_STORE_CTX *) ()
); const X509 * SSL_get_peer_certificate (SSL *ssl
); int SSL_connect (SSL *ssl
); int SSL_accept (SSL *ssl
); int SSL_shutdown (SSL *ssl
); int SSL_read (SSL *ssl
,void *buf
,int len
); int SSL_write (SSL *ssl
,const void *buf
,int len
); int SSL_want (SSL *ssl
); #define SSL_NOTHING #define SSL_WRITING #define SSL_READING #define SSL_X509_LOOKUP #define SSL_want_nothing (s) #define SSL_want_read (s) #define SSL_want_write (s) #define SSL_want_x509_lookup (s) SSL_METHOD * SSLv23_client_method (void
); SSL_METHOD * SSLv23_server_method (void
); SSL_METHOD * SSLv3_client_method (void
); SSL_METHOD * SSLv3_server_method (void
); SSL_METHOD * TLSv1_client_method (void
); SSL_METHOD * TLSv1_server_method (void
); SSL_CIPHER * SSL_get_current_cipher (SSL *ssl
); const char * SSL_CIPHER_get_name (SSL_CIPHER *cipher
); int SSL_CIPHER_get_bits (SSL_CIPHER *cipher
,int *bits
); const char * SSL_CIPHER_get_version (SSL_CIPHER *cipher
); char * SSL_CIPHER_description (SSL_CIPHER *cipher
,char *buf
,int size
); X509_NAME * X509_get_subject_name (const X509 *cert
); X509_NAME * X509_get_issuer_name (const X509 *cert
); char * X509_NAME_oneline (gnutls_x509_dn *name
,char *buf
,int len
); void X509_free (const X509 *cert
); void BIO_get_fd (gnutls_session_t gnutls_state
,int *fd
); BIO * BIO_new_socket (int sock
,int close_flag
); unsigned long ERR_get_error (void
); const char * ERR_error_string (unsigned long e
,char *buf
); int RAND_status (void
); void RAND_seed (const void *buf
,int num
); int RAND_bytes (unsigned char *buf
,int num
); int RAND_pseudo_bytes (unsigned char *buf
,int num
); const char * RAND_file_name (char *buf
,size_t len
); int RAND_load_file (const char *name
,long maxbytes Param2
); int RAND_write_file (const char *name
); int RAND_egd_bytes (const char *path
,int bytes
); #define RAND_egd (p) #define MD5_DIGEST_LENGTH void MD5_Init (MD5_CTX *ctx
); void MD5_Update (MD5_CTX *ctx
,const void *buf
,int len
); void MD5_Final (unsigned char *md
,MD5_CTX *ctx
); unsigned char * MD5 (unsigned char *buf
,unsigned long len
,unsigned char *md
); void RIPEMD160_Init (RIPEMD160_CTX *ctx
); void RIPEMD160_Update (RIPEMD160_CTX *ctx
,const void *buf
,int len
); void RIPEMD160_Final (unsigned char *md
,RIPEMD160_CTX *ctx
); unsigned char * RIPEMD160 (unsigned char *buf
,unsigned long len
,unsigned char *md
);
typedef struct { gnutls_session_t gnutls_state; gnutls_certificate_client_credentials gnutls_cred; SSL_CTX *ctx; SSL_CIPHER ciphersuite; int last_error; int shutdown; int state; unsigned long options; int (*verify_callback) (int, X509_STORE_CTX *); int verify_mode; gnutls_transport_ptr_t rfd; gnutls_transport_ptr_t wfd; } SSL;
#define X509_STORE_CTX_get_current_cert(ctx) ((ctx)->current_cert)
|
#define SSL_get_cipher_name(ssl) SSL_CIPHER_get_name(SSL_get_current_cipher(ssl))
|
#define SSL_get_cipher_bits(ssl,bp) SSL_CIPHER_get_bits(SSL_get_current_cipher(ssl),(bp))
|
|
|
#define SSL_get_cipher_version(ssl) SSL_CIPHER_get_version(SSL_get_current_cipher(ssl))
|
int SSL_CTX_set_default_verify_paths (SSL_CTX *ctx
);
|
|
Returns : |
int SSL_CTX_use_certificate_file (SSL_CTX *ctx
,const char *certfile
,int type
);
|
|
|
|
|
|
Returns : |
int SSL_CTX_use_PrivateKey_file (SSL_CTX *ctx
,const char *keyfile
,int type
);
|
|
|
|
|
|
Returns : |
void SSL_CTX_set_verify (SSL_CTX *ctx
,int verify_mode
,int (verify_callbackint, X509_STORE_CTX *) ()
);
|
|
|
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
|
unsigned long SSL_CTX_set_options (SSL_CTX *ctx
,unsigned long options
);
|
|
|
|
Returns : |
long SSL_CTX_set_mode (SSL_CTX *ctx
,long mode Param2
);
|
|
|
|
Returns : |
int SSL_CTX_set_cipher_list (SSL_CTX *ctx
,const char *list
);
|
|
|
|
Returns : |
long SSL_CTX_sess_connect_renegotiate (SSL_CTX *ctx
);
|
|
Returns : |
long SSL_CTX_sess_accept_renegotiate (SSL_CTX *ctx
);
|
|
Returns : |
void SSL_set_verify (SSL *ssl
,int verify_mode
,int (verify_callbackint, X509_STORE_CTX *) ()
);
|
|
|
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
int , X509_STORE_CTX *:
|
int SSL_CIPHER_get_bits (SSL_CIPHER *cipher
,int *bits
);
|
|
|
|
Returns : |
const char * SSL_CIPHER_get_version (SSL_CIPHER *cipher
);
|
|
Returns : |
char * SSL_CIPHER_description (SSL_CIPHER *cipher
,char *buf
,int size
);
|
|
|
|
|
|
Returns : |
char * X509_NAME_oneline (gnutls_x509_dn *name
,char *buf
,int len
);
|
|
|
|
|
|
Returns : |
int RAND_load_file (const char *name
,long maxbytes Param2
);
|
|
|
|
Returns : |
unsigned char * MD5 (unsigned char *buf
,unsigned long len
,unsigned char *md
);
|
|
|
|
|
|
Returns : |
void RIPEMD160_Update (RIPEMD160_CTX *ctx
,const void *buf
,int len
);
|
|
|
|
|