From 5945d570d0b3e302b27d6163d1ef77b0be092dcc Mon Sep 17 00:00:00 2001 From: Marcel Poul Date: Tue, 17 Jan 2012 13:54:24 +0000 Subject: [PATCH] stubs of methods handling peer credentials and certificate requests --- emi.canl.canl-c/src/canl_cred.c | 139 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 emi.canl.canl-c/src/canl_cred.c diff --git a/emi.canl.canl-c/src/canl_cred.c b/emi.canl.canl-c/src/canl_cred.c new file mode 100644 index 0000000..d0a6c59 --- /dev/null +++ b/emi.canl.canl-c/src/canl_cred.c @@ -0,0 +1,139 @@ +#include "canl_locl.h" +#include "canl_cred.h" + +canl_err_code CANL_CALLCONV +canl_cred_create(canl_ctx ctx, canl_cred * cred) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_free(canl_ctx ctx, canl_cred cred) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_ctx_set_cred(canl_ctx ctx, canl_cred cred) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_load_req(canl_ctx ctx, canl_cred cred, canl_x509_req req) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_load_priv_key_file(canl_ctx ctx, canl_cred cred, const char * pkey_file, + canl_password_callback pass_clb, void * arg) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_load_chain(canl_ctx ctx, canl_cred cred, STACK_OF(X509) *cert_stack) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_load_chain_file(canl_ctx ctx, canl_cred cred, const char *chain_file) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_load_cert(canl_ctx ctx, canl_cred cred, X509 *cert) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_load_cert_file(canl_ctx ctx, canl_cred cred, const char * cert_file) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_set_lifetime(canl_ctx ctx, canl_cred cred, long lifetime) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_set_extension(canl_ctx ctx, canl_cred cred, X509_EXTENSION *cert_ext) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_set_cert_type(canl_ctx ctx, canl_cred cred, enum canl_cert_type cert_type) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_sign_proxy(canl_ctx ctx, canl_cred signer_cred, canl_cred proxy_cred) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_save_proxyfile(canl_ctx ctx, canl_cred cred, const char *proxy_file) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_save_cert(canl_ctx ctx, canl_cred cred, X509 ** cert) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_cred_save_chain(canl_ctx ctx, canl_cred cred, STACK_OF(X509) **cert_stack) +{ + return ENOSYS; +} + +/* handle requests*/ +canl_err_code CANL_CALLCONV +canl_req_create(canl_ctx ctx, canl_x509_req *c_req) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_req_create_req(canl_ctx ctx, canl_x509_req *c_req, X509_REQ *req) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_req_free(canl_ctx ctx, canl_x509_req c_req) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_req_gen_key(canl_ctx ctx, canl_x509_req c_req, unsigned int bits) +{ + return ENOSYS; +} + +canl_err_code CANL_CALLCONV +canl_req_get_req(canl_ctx ctx, canl_x509_req c_req, X509_REQ ** req_stack) +{ + return ENOSYS; +} + +#if 0 +canl_err_code CANL_CALLCONV +canl_req_get_pair(canl_ctx, canl_x509_req, EVP_PKEY **) +{ + return ENOSYS; +} +#endif + -- 1.8.2.3