From: Daniel KouĊ™il Date: Thu, 12 Jan 2012 08:16:24 +0000 (+0000) Subject: Make the functional usable with c++ X-Git-Tag: emi-canl-c_R_1_0_0_0~81 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=c047a0d474b8880d7c9512cfc3e8297e6e9f5f30;p=jra1mw.git Make the functional usable with c++ --- diff --git a/emi.canl.canl-c/src/canl.h b/emi.canl.canl-c/src/canl.h index 2f7714c..8ef6d2a 100644 --- a/emi.canl.canl-c/src/canl.h +++ b/emi.canl.canl-c/src/canl.h @@ -3,6 +3,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + #include typedef void *canl_io_handler; @@ -41,4 +45,9 @@ 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); + +#ifdef __cplusplus +} +#endif + #endif