aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl_client.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2011-12-19 18:22:37 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2011-12-19 18:22:37 +0100
commit78b840187cc1e2d370dd758e6a73c21e510107b5 (patch)
tree9f801dfd335e838ee27e475b73f86838b715edcd /lib/ssl_client.h
parent486ddb53b93b6677dc3feeb4afaad2ea93a71a81 (diff)
Move conversion of status codes to status messages into SSL libs.
Diffstat (limited to 'lib/ssl_client.h')
-rw-r--r--lib/ssl_client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssl_client.h b/lib/ssl_client.h
index 03355297..9ce878a1 100644
--- a/lib/ssl_client.h
+++ b/lib/ssl_client.h
@@ -100,4 +100,8 @@ G_MODULE_EXPORT int ssl_getfd( void *conn );
the same action as the handler that just received the SSL_AGAIN.) */
G_MODULE_EXPORT b_input_condition ssl_getdirection( void *conn );
+/* Converts a verification bitfield passed to ssl_input_function into
+ a more useful string. Or NULL if it had no useful bits set. */
+G_MODULE_EXPORT char *ssl_verify_strerror( int code );
+
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);