const gss_OID CANL_CALLCONV
canl_str2mech(canl_ctx, const char mech);
-canl_err_code CANL_CALLCONV
-canl_ctx_set_ssl_cred(canl_ctx cc, char *cert, char *key,
- canl_password_callback cb, void *userdata);
-
#ifdef __cplusplus
}
#endif
canl_password_callback, void *);
canl_err_code CANL_CALLCONV
+canl_cred_load_priv_key_pkcs11(canl_ctx, canl_cred, const char *,
+ canl_password_callback, void *);
+
+canl_err_code CANL_CALLCONV
canl_cred_load_chain(canl_ctx, canl_cred, STACK_OF(X509) *);
canl_err_code CANL_CALLCONV
canl_cred_load_cert_file(canl_ctx, canl_cred, const char *);
canl_err_code CANL_CALLCONV
+canl_cred_load_cert_pkcs11(canl_ctx, canl_cred, const char *);
+
+canl_err_code CANL_CALLCONV
canl_cred_set_lifetime(canl_ctx, canl_cred, long);
canl_err_code CANL_CALLCONV
extern "C" {
#endif
-typedef void *canl_x509;
-typedef void *canl_stack_of_x509;
-typedef void *canl_pkey;
+typedef enum canl_ctx_ssl_flags {
+ CANL_ACCEPT_SSLv2 = 0x0001,
+} canl_ctx_ssl_flags;
-typedef char (*canl_password_callback)(canl_ctx cc, void *userdata);
+canl_ctx CANL_CALLCONV
+canl_ctx_set_ssl_flags(canl_ctx, unsigned int);
-int canl_set_ctx_own_cert(canl_ctx cc, canl_x509 cert,
- canl_stack_of_x509 chain, canl_pkey key);
-int canl_set_ctx_own_cert_file(canl_ctx cc, char *cert, char *key,
- canl_password_callback cb, void *userdata);
+canl_err_code CANL_CALLCONV
+canl_ctx_set_ssl_cred(canl_ctx, char *, char *key,
+ canl_password_callback, void *);
+
+canl_err_code CANL_CALLCONV
+canl_ctx_set_ca_dir(canl_ctx, const char *);
+
+canl_err_code CANL_CALLCONV
+canl_ctx_set_crl_dir(canl_ctx, const char *);
+
+canl_err_code CANL_CALLCONV
+canl_ctx_set_pkcs11_lib(canl_ctx, const char *);
+
+canl_err_code CANL_CALLCONV
+canl_ctx_set_pkcs11_init_args(canl_ctx, const char *);
#ifdef __cplusplus
}