class KOpenSSLProxy

# class KOpenSSLProxy |
Definition | `#include <kopenssl.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- bool hasLibCrypto () const
- bool hasLibSSL () const
- void destroy ()
- int SSL_connect (SSL *ssl)
- int SSL_accept (SSL *ssl)
- int SSL_get_error (SSL *ssl, int rc)
- int SSL_read (SSL *ssl, void *buf, int num)
- int SSL_write (SSL *ssl, const void *buf, int num)
- SSL * SSL_new (SSL_CTX *ctx)
- void SSL_free (SSL *ssl)
- int SSL_shutdown (SSL *ssl)
- SSL_CTX * SSL_CTX_new (SSL_METHOD *method)
- void SSL_CTX_free (SSL_CTX *ctx)
- int SSL_set_fd (SSL *ssl, int fd)
- int SSL_pending (SSL *ssl)
- int SSL_peek (SSL *ssl, void *buf, int num)
- int SSL_CTX_set_cipher_list (SSL_CTX *ctx, const char *str)
- void SSL_CTX_set_verify (SSL_CTX *ctx, int mode, int (*verify_callback)(int, X509_STORE_CTX *))
- int SSL_use_certificate (SSL *ssl, X509 *x)
- SSL_CIPHER * SSL_get_current_cipher (SSL *ssl)
- long SSL_ctrl (SSL *ssl,int cmd, long larg, char *parg)
- int RAND_egd (const char *path)
- const char * RAND_file_name (char *buf, size_t num)
- int RAND_load_file (const char *filename, long max_bytes)
- int RAND_write_file (const char *filename)
- SSL_METHOD * TLSv1_client_method ()
- SSL_METHOD * SSLv2_client_method ()
- SSL_METHOD * SSLv3_client_method ()
- SSL_METHOD * SSLv23_client_method ()
- X509 * SSL_get_peer_certificate (SSL *s)
- int SSL_CIPHER_get_bits (SSL_CIPHER *c,int *alg_bits)
- char * SSL_CIPHER_get_version (SSL_CIPHER *c)
- const char * SSL_CIPHER_get_name (SSL_CIPHER *c)
- char * SSL_CIPHER_description (SSL_CIPHER *,char *buf,int size)
- int SSL_CTX_use_PrivateKey (SSL_CTX *ctx, EVP_PKEY *pkey)
- int SSL_CTX_use_certificate (SSL_CTX *ctx, X509 *x)
- X509 * d2i_X509 (X509 **a,unsigned char **pp,long length)
- int i2d_X509 (X509 *a,unsigned char **pp)
- int X509_cmp (X509 *a, X509 *b)
- X509 * X509_dup (X509 *x509)
- X509_STORE_CTX * X509_STORE_CTX_new (void)
- void X509_STORE_CTX_free (X509_STORE_CTX *v)
- void X509_STORE_CTX_set_chain (X509_STORE_CTX *v, STACK_OF(X509)* x)
- void X509_STORE_CTX_set_purpose (X509_STORE_CTX *v, int purpose)
- int X509_verify_cert (X509_STORE_CTX *v)
- X509_STORE * X509_STORE_new (void)
- void X509_STORE_free (X509_STORE *v)
- void X509_free (X509 *v)
- char * X509_NAME_oneline (X509_NAME *a, char *buf, int size)
- X509_NAME * X509_get_subject_name (X509 *a)
- X509_NAME * X509_get_issuer_name (X509 *a)
- X509_LOOKUP * X509_STORE_add_lookup (X509_STORE *v, X509_LOOKUP_METHOD *m)
- X509_LOOKUP_METHOD * X509_LOOKUP_file (void)
- void X509_LOOKUP_free (X509_LOOKUP *x)
- int X509_LOOKUP_ctrl (X509_LOOKUP *ctx, int cmd, const char *argc, long argl, char **ret)
- void X509_STORE_CTX_init (X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, STACK_OF(X509) *chain)
- void CRYPTO_free (void *x)
- BIO * BIO_new_fp (FILE *stream, int close_flag)
- int BIO_free (BIO *a)
- int PEM_write_bio_X509 (BIO *bp, X509 *x)
- ASN1_METHOD * X509_asn1_meth ()
- int ASN1_i2d_fp (FILE *out, unsigned char *x)
- X509 * X509_d2i_fp (FILE *out, X509** buf)
- int X509_print (FILE *fp, X509 *x)
- PKCS12 * d2i_PKCS12_fp (FILE *fp, PKCS12 **p12)
- int PKCS12_newpass (PKCS12 *p12, char *oldpass, char *newpass)
- int i2d_PKCS12 (PKCS12 *p12, unsigned char **p)
- int i2d_PKCS12_fp (FILE *fp, PKCS12 *p12)
- PKCS12 * PKCS12_new (void)
- void PKCS12_free (PKCS12 *a)
- int PKCS12_parse (PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, STACK_OF(X509) **ca)
- void EVP_PKEY_free (EVP_PKEY *x)
- char * sk_pop (STACK *s)
- void sk_free (STACK *s)
- int sk_num (STACK *s)
- char * sk_value (STACK *s, int n)
- STACK * sk_new (int (*cmp)())
- int sk_push (STACK *s, char *d)
- STACK * sk_dup (STACK *s)
- char * i2s_ASN1_INTEGER (X509V3_EXT_METHOD *meth, ASN1_INTEGER *aint)
- ASN1_INTEGER * X509_get_serialNumber (X509 *x)
- EVP_PKEY * X509_get_pubkey (X509 *x)
- int i2d_PublicKey (EVP_PKEY *a, unsigned char **pp)
- int X509_check_private_key (X509 *x, EVP_PKEY *p)
- char * BN_bn2hex (const BIGNUM *a)
- int X509_digest (const X509 *x,const EVP_MD *t, unsigned char *md, unsigned int *len)
- EVP_MD * EVP_md5 ()
- void ASN1_INTEGER_free (ASN1_INTEGER *x)
- int OBJ_obj2nid (ASN1_OBJECT *o)
- const char * OBJ_nid2ln (int n)
- int X509_get_ext_count (X509 *x)
- int X509_get_ext_by_NID (X509 *x, int nid, int lastpos)
- int X509_get_ext_by_OBJ (X509 *x,ASN1_OBJECT *obj,int lastpos)
- X509_EXTENSION * X509_get_ext (X509 *x, int loc)
- X509_EXTENSION * X509_delete_ext (X509 *x, int loc)
- int X509_add_ext (X509 *x, X509_EXTENSION *ex, int loc)
- void * X509_get_ext_d2i (X509 *x, int nid, int *crit, int *idx)
- char * i2s_ASN1_OCTET_STRING (X509V3_EXT_METHOD *method, ASN1_OCTET_STRING *ia5)
- int ASN1_BIT_STRING_get_bit (ASN1_BIT_STRING *a, int n)
- PKCS7 * PKCS7_new (void)
- void PKCS7_free (PKCS7 *a)
- void PKCS7_content_free (PKCS7 *a)
- int i2d_PKCS7 (PKCS7 *a, unsigned char **pp)
- PKCS7 * d2i_PKCS7 (PKCS7 **a, unsigned char **pp,long length)
- int i2d_PKCS7_fp (FILE *fp,PKCS7 *p7)
- PKCS7 * d2i_PKCS7_fp (FILE *fp,PKCS7 **p7)
- PKCS7 * PKCS7_dup (PKCS7 *p7)
- int PKCS7_verify (PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store, BIO *indata, BIO *out, int flags)
- int X509_PURPOSE_get_count ()
- int X509_PURPOSE_get_id (X509_PURPOSE *)
- int X509_check_purpose (X509 *x, int id, int ca)
- X509_PURPOSE * X509_PURPOSE_get0 (int idx)
- EVP_PKEY* EVP_PKEY_new ()
- int EVP_PKEY_assign (EVP_PKEY *pkey, int type, char *key)
- RSA * RSA_generate_key (int bits, unsigned long e, void (*callback)(int,int,void *), void *cb_arg)
- X509_REQ * X509_REQ_new ()
- void X509_REQ_free (X509_REQ *a)
- int X509_REQ_set_pubkey (X509_REQ *x, EVP_PKEY *pkey)
- int i2d_X509_REQ_fp (FILE *fp, X509_REQ *x)
- void ERR_clear_error ()
- void ERR_print_errors_fp (FILE *fp)

#### Public Static Methods

- static KOpenSSLProxy * self ()

## Detailed Description

KOpenSSLProxy * self () | ### self

[static]

Return an instance of class KOpenSSLProxy * You cannot delete this object. It is a singleton class.

bool hasLibCrypto () | ### hasLibCrypto

[const]

Return true of libcrypto was found and loaded

bool hasLibSSL () | ### hasLibSSL

[const]

Return true of libssl was found and loaded

void destroy () | ### destroy

Destroy the class and start over - don't use this unless you know what you are doing.

int SSL_connect (SSL *ssl) | ### SSL_connect

int SSL_accept (SSL *ssl) | ### SSL_accept

int SSL_get_error (SSL *ssl, int rc) | ### SSL_get_error

int SSL_read (SSL *ssl, void *buf, int num) | ### SSL_read

int SSL_write (SSL *ssl, const void *buf, int num) | ### SSL_write

SSL * SSL_new (SSL_CTX *ctx) | ### SSL_new

void SSL_free (SSL *ssl) | ### SSL_free

int SSL_shutdown (SSL *ssl) | ### SSL_shutdown

SSL_CTX * SSL_CTX_new (SSL_METHOD *method) | ### SSL_CTX_new

void SSL_CTX_free (SSL_CTX *ctx) | ### SSL_CTX_free

int SSL_set_fd (SSL *ssl, int fd) | ### SSL_set_fd

int SSL_pending (SSL *ssl) | ### SSL_pending

int SSL_peek (SSL *ssl, void *buf, int num) | ### SSL_peek

int SSL_CTX_set_cipher_list (SSL_CTX *ctx, const char *str) | ### SSL_CTX_set_cipher_list

void SSL_CTX_set_verify (SSL_CTX *ctx, int mode, int (*verify_callback)(int, X509_STORE_CTX *)) | ### SSL_CTX_set_verify

int SSL_use_certificate (SSL *ssl, X509 *x) | ### SSL_use_certificate

SSL_CIPHER * SSL_get_current_cipher (SSL *ssl) | ### SSL_get_current_cipher

long SSL_ctrl (SSL *ssl,int cmd, long larg, char *parg) | ### SSL_ctrl

int RAND_egd (const char *path) | ### RAND_egd

const char * RAND_file_name (char *buf, size_t num) | ### RAND_file_name

int RAND_load_file (const char *filename, long max_bytes) | ### RAND_load_file

int RAND_write_file (const char *filename) | ### RAND_write_file

SSL_METHOD * TLSv1_client_method () | ### TLSv1_client_method

SSL_METHOD * SSLv2_client_method () | ### SSLv2_client_method

SSL_METHOD * SSLv3_client_method () | ### SSLv3_client_method

SSL_METHOD * SSLv23_client_method () | ### SSLv23_client_method

X509 * SSL_get_peer_certificate (SSL *s) | ### SSL_get_peer_certificate

int SSL_CIPHER_get_bits (SSL_CIPHER *c,int *alg_bits) | ### SSL_CIPHER_get_bits

char * SSL_CIPHER_get_version (SSL_CIPHER *c) | ### SSL_CIPHER_get_version

const char * SSL_CIPHER_get_name (SSL_CIPHER *c) | ### SSL_CIPHER_get_name

char * SSL_CIPHER_description (SSL_CIPHER *,char *buf,int size) | ### SSL_CIPHER_description

int SSL_CTX_use_PrivateKey (SSL_CTX *ctx, EVP_PKEY *pkey) | ### SSL_CTX_use_PrivateKey

int SSL_CTX_use_certificate (SSL_CTX *ctx, X509 *x) | ### SSL_CTX_use_certificate

X509 * d2i_X509 (X509 **a,unsigned char **pp,long length) | ### d2i_X509

int i2d_X509 (X509 *a,unsigned char **pp) | ### i2d_X509

int X509_cmp (X509 *a, X509 *b) | ### X509_cmp

X509 * X509_dup (X509 *x509) | ### X509_dup

X509_STORE_CTX * X509_STORE_CTX_new (void) | ### X509_STORE_CTX_new

void X509_STORE_CTX_free (X509_STORE_CTX *v) | ### X509_STORE_CTX_free

void X509_STORE_CTX_set_chain (X509_STORE_CTX *v, STACK_OF(X509)* x) | ### X509_STORE_CTX_set_chain

void X509_STORE_CTX_set_purpose (X509_STORE_CTX *v, int purpose) | ### X509_STORE_CTX_set_purpose

int X509_verify_cert (X509_STORE_CTX *v) | ### X509_verify_cert

X509_STORE * X509_STORE_new (void) | ### X509_STORE_new

void X509_STORE_free (X509_STORE *v) | ### X509_STORE_free

void X509_free (X509 *v) | ### X509_free

char * X509_NAME_oneline (X509_NAME *a, char *buf, int size) | ### X509_NAME_oneline

X509_NAME * X509_get_subject_name (X509 *a) | ### X509_get_subject_name

X509_NAME * X509_get_issuer_name (X509 *a) | ### X509_get_issuer_name

X509_LOOKUP * X509_STORE_add_lookup (X509_STORE *v, X509_LOOKUP_METHOD *m) | ### X509_STORE_add_lookup

X509_LOOKUP_METHOD * X509_LOOKUP_file (void) | ### X509_LOOKUP_file

void X509_LOOKUP_free (X509_LOOKUP *x) | ### X509_LOOKUP_free

int X509_LOOKUP_ctrl (X509_LOOKUP *ctx, int cmd, const char *argc, long argl, char **ret) | ### X509_LOOKUP_ctrl

void X509_STORE_CTX_init (X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, STACK_OF(X509) *chain) | ### X509_STORE_CTX_init

void CRYPTO_free (void *x) | ### CRYPTO_free

BIO * BIO_new_fp (FILE *stream, int close_flag) | ### BIO_new_fp

int BIO_free (BIO *a) | ### BIO_free

int PEM_write_bio_X509 (BIO *bp, X509 *x) | ### PEM_write_bio_X509

ASN1_METHOD * X509_asn1_meth () | ### X509_asn1_meth

int ASN1_i2d_fp (FILE *out, unsigned char *x) | ### ASN1_i2d_fp

X509 * X509_d2i_fp (FILE *out, X509** buf) | ### X509_d2i_fp

int X509_print (FILE *fp, X509 *x) | ### X509_print

PKCS12 * d2i_PKCS12_fp (FILE *fp, PKCS12 **p12) | ### d2i_PKCS12_fp

int PKCS12_newpass (PKCS12 *p12, char *oldpass, char *newpass) | ### PKCS12_newpass

int i2d_PKCS12 (PKCS12 *p12, unsigned char **p) | ### i2d_PKCS12

int i2d_PKCS12_fp (FILE *fp, PKCS12 *p12) | ### i2d_PKCS12_fp

PKCS12 * PKCS12_new (void) | ### PKCS12_new

void PKCS12_free (PKCS12 *a) | ### PKCS12_free

int PKCS12_parse (PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, STACK_OF(X509) **ca) | ### PKCS12_parse

void EVP_PKEY_free (EVP_PKEY *x) | ### EVP_PKEY_free

char * sk_pop (STACK *s) | ### sk_pop

void sk_free (STACK *s) | ### sk_free

int sk_num (STACK *s) | ### sk_num

char * sk_value (STACK *s, int n) | ### sk_value

STACK * sk_new (int (*cmp)()) | ### sk_new

int sk_push (STACK *s, char *d) | ### sk_push

STACK * sk_dup (STACK *s) | ### sk_dup

char * i2s_ASN1_INTEGER (X509V3_EXT_METHOD *meth, ASN1_INTEGER *aint) | ### i2s_ASN1_INTEGER

ASN1_INTEGER * X509_get_serialNumber (X509 *x) | ### X509_get_serialNumber

EVP_PKEY * X509_get_pubkey (X509 *x) | ### X509_get_pubkey

int i2d_PublicKey (EVP_PKEY *a, unsigned char **pp) | ### i2d_PublicKey

int X509_check_private_key (X509 *x, EVP_PKEY *p) | ### X509_check_private_key

char * BN_bn2hex (const BIGNUM *a) | ### BN_bn2hex

int X509_digest (const X509 *x,const EVP_MD *t, unsigned char *md, unsigned int *len) | ### X509_digest

EVP_MD * EVP_md5 () | ### EVP_md5

void ASN1_INTEGER_free (ASN1_INTEGER *x) | ### ASN1_INTEGER_free

int OBJ_obj2nid (ASN1_OBJECT *o) | ### OBJ_obj2nid

const char * OBJ_nid2ln (int n) | ### OBJ_nid2ln

int X509_get_ext_count (X509 *x) | ### X509_get_ext_count

int X509_get_ext_by_NID (X509 *x, int nid, int lastpos) | ### X509_get_ext_by_NID

int X509_get_ext_by_OBJ (X509 *x,ASN1_OBJECT *obj,int lastpos) | ### X509_get_ext_by_OBJ

X509_EXTENSION * X509_get_ext (X509 *x, int loc) | ### X509_get_ext

X509_EXTENSION * X509_delete_ext (X509 *x, int loc) | ### X509_delete_ext

int X509_add_ext (X509 *x, X509_EXTENSION *ex, int loc) | ### X509_add_ext

void * X509_get_ext_d2i (X509 *x, int nid, int *crit, int *idx) | ### X509_get_ext_d2i

char * i2s_ASN1_OCTET_STRING (X509V3_EXT_METHOD *method, ASN1_OCTET_STRING *ia5) | ### i2s_ASN1_OCTET_STRING

int ASN1_BIT_STRING_get_bit (ASN1_BIT_STRING *a, int n) | ### ASN1_BIT_STRING_get_bit

PKCS7 * PKCS7_new (void) | ### PKCS7_new

void PKCS7_free (PKCS7 *a) | ### PKCS7_free

void PKCS7_content_free (PKCS7 *a) | ### PKCS7_content_free

int i2d_PKCS7 (PKCS7 *a, unsigned char **pp) | ### i2d_PKCS7

PKCS7 * d2i_PKCS7 (PKCS7 **a, unsigned char **pp,long length) | ### d2i_PKCS7

int i2d_PKCS7_fp (FILE *fp,PKCS7 *p7) | ### i2d_PKCS7_fp

PKCS7 * d2i_PKCS7_fp (FILE *fp,PKCS7 **p7) | ### d2i_PKCS7_fp

PKCS7 * PKCS7_dup (PKCS7 *p7) | ### PKCS7_dup

int PKCS7_verify (PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store, BIO *indata, BIO *out, int flags) | ### PKCS7_verify

int X509_PURPOSE_get_count () | ### X509_PURPOSE_get_count

int X509_PURPOSE_get_id (X509_PURPOSE *) | ### X509_PURPOSE_get_id

int X509_check_purpose (X509 *x, int id, int ca) | ### X509_check_purpose

X509_PURPOSE * X509_PURPOSE_get0 (int idx) | ### X509_PURPOSE_get0

EVP_PKEY* EVP_PKEY_new () | ### EVP_PKEY_new

int EVP_PKEY_assign (EVP_PKEY *pkey, int type, char *key) | ### EVP_PKEY_assign

RSA * RSA_generate_key (int bits, unsigned long e, void (*callback)(int,int,void *), void *cb_arg) | ### RSA_generate_key

X509_REQ * X509_REQ_new () | ### X509_REQ_new

void X509_REQ_free (X509_REQ *a) | ### X509_REQ_free

int X509_REQ_set_pubkey (X509_REQ *x, EVP_PKEY *pkey) | ### X509_REQ_set_pubkey

int i2d_X509_REQ_fp (FILE *fp, X509_REQ *x) | ### i2d_X509_REQ_fp

void ERR_clear_error () | ### ERR_clear_error

void ERR_print_errors_fp (FILE *fp) | ### ERR_print_errors_fp

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:09 2003, using kdoc 2.0a54.