canl_err_code (*initialize)
(void **);
+ canl_err_code (*finish)
+ (void *);
+
canl_err_code (*client_init)
(glb_ctx *, void **);
canl_err_code (*free_ctx)
(glb_ctx *, void *);
- canl_err_code (*free_global_ctx) /* XXX: ???? */
- (glb_ctx *, void *);
-
canl_err_code (*connect)
(glb_ctx *, void *, io_handler *, struct timeval *, const char *);
return 0;
}
+int
+ssl_finish(glb_ctx *cc, void *ctx)
+{
+ SSL_CTX_free(ctx);
+ return 0;
+}
+
canl_err_code
canl_ctx_set_ssl_cred(canl_ctx cc, char *cert, char *key,
canl_password_callback cb, void *userdata)