src/sock_ssl.h
branchnew-transport
changeset 155 c59d3eaff0fb
parent 140 aa390e52eda8
--- a/src/sock_ssl.h	Tue Apr 28 17:52:48 2009 +0300
+++ b/src/sock_ssl.h	Tue Apr 28 20:27:45 2009 +0300
@@ -4,7 +4,7 @@
 /**
  * @file
  *
- * SSL-specific functionality as related to sock.h
+ * SSL transport implementation.
  */
 #include "sock.h"
 
@@ -36,7 +36,7 @@
 err_t sock_ssl_client_cred_create (struct sock_ssl_client_cred **ctx_cred,
         const char *cafile_path, bool verify,
         const char *cert_path, const char *pkey_path,
-        struct error_info *err
+        error_t *err
 );
 
 /**
@@ -58,19 +58,17 @@
  * or a sock_ssl_client_cred allocated using sock_ssl_client_cred_create(). The contexts are reference-counted, so once
  * a cred context has been released, it will be destroyed once the last connection using it is destroyed.
  * 
- * @param sock_ptr the new sock_stream
+ * @param info the transport setup info
+ * @param transport_ptr returned transport
  * @param hostname the hostname to connect to
  * @param service the TCP service name (i.e. port) to connect to
  * @param cred the SSL client credentials to use, if not NULL
- * @param cb_func the callback for connection/handshake completion
- * @param cb_arg the callback context argument
  * @param err returned error info
  */
-err_t sock_ssl_connect_async (struct sock_stream **sock_ptr, 
+err_t sock_ssl_connect (const struct transport_info *info, transport_t **transport_ptr, 
         const char *hostname, const char *service,
         struct sock_ssl_client_cred *cred,
-        sock_stream_connect_cb cb_func, void *cb_arg, 
-        struct error_info *err
+        error_t *err
     );