Make the functional usable with c++
authorDaniel Kouřil <kouril@ics.muni.cz>
Thu, 12 Jan 2012 08:16:24 +0000 (08:16 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Thu, 12 Jan 2012 08:16:24 +0000 (08:16 +0000)
emi.canl.canl-c/src/canl.h

index 2f7714c..8ef6d2a 100644 (file)
@@ -3,6 +3,10 @@
 #include <sys/time.h>
 #include <sys/socket.h>
 
+#ifdef __cplusplus
+extern "C" { 
+#endif
+
 #include <canl_err.h>
 
 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