Changes in lib/ssl_client.h [200e151:80acb6d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/ssl_client.h
r200e151 r80acb6d 40 40 #define SSL_NOHANDSHAKE 1 41 41 #define SSL_AGAIN 2 42 #define VERIFY_CERT_ERROR 243 #define VERIFY_CERT_INVALID 444 #define VERIFY_CERT_REVOKED 845 #define VERIFY_CERT_SIGNER_NOT_FOUND 1646 #define VERIFY_CERT_SIGNER_NOT_CA 3247 #define VERIFY_CERT_INSECURE_ALGORITHM 6448 #define VERIFY_CERT_NOT_ACTIVATED 12849 #define VERIFY_CERT_EXPIRED 25650 #define VERIFY_CERT_WRONG_HOSTNAME 51251 42 52 43 extern int ssl_errno; 53 44 54 45 /* This is what your callback function should look like. */ 55 typedef gboolean (*ssl_input_function)(gpointer, int,void*, b_input_condition);46 typedef gboolean (*ssl_input_function)(gpointer, void*, b_input_condition); 56 47 57 48 … … 62 53 ready to be used for SSL traffic. This is all done asynchronously, no 63 54 blocking I/O! (Except for the DNS lookups, for now...) */ 64 G_MODULE_EXPORT void *ssl_connect( char *host, int port, gboolean verify,ssl_input_function func, gpointer data );55 G_MODULE_EXPORT void *ssl_connect( char *host, int port, ssl_input_function func, gpointer data ); 65 56 66 57 /* Start an SSL session on an existing fd. Useful for STARTTLS functionality, 67 58 for example in Jabber. */ 68 G_MODULE_EXPORT void *ssl_starttls( int fd, char *hostname, gboolean verify,ssl_input_function func, gpointer data );59 G_MODULE_EXPORT void *ssl_starttls( int fd, ssl_input_function func, gpointer data ); 69 60 70 61 /* Obviously you need special read/write functions to read data. */ … … 99 90 G_MODULE_EXPORT b_input_condition ssl_getdirection( void *conn ); 100 91 101 /* Converts a verification bitfield passed to ssl_input_function into102 a more useful string. Or NULL if it had no useful bits set. */103 G_MODULE_EXPORT char *ssl_verify_strerror( int code );104 105 92 G_MODULE_EXPORT size_t ssl_des3_encrypt(const unsigned char *key, size_t key_len, const unsigned char *input, size_t input_len, const unsigned char *iv, unsigned char **res);
Note: See TracChangeset
for help on using the changeset viewer.