summaryrefslogtreecommitdiffstats
path: root/perl/openssl.h
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@openssl.org>1999-03-08 11:25:49 +0000
committerRalf S. Engelschall <rse@openssl.org>1999-03-08 11:25:49 +0000
commit84107e6ca812b1325907596b6a5bfa9080a16a92 (patch)
tree6c5d1cb0ac3983d24c3478c132bdb907bf0acef5 /perl/openssl.h
parent9ea0e64de71d8b7c197a4abbf59f85bf9d0db9d4 (diff)
Second round of fixing the OpenSSL perl/ stuff. It now at least compiled fine
under Unix and passes some trivial tests I've now added. But the whole stuff is horribly incomplete, so a README.1ST with a disclaimer was added to make sure no one expects that this stuff really works in the OpenSSL 0.9.2 release. Additionally I've started to clean the XS sources up and fixed a few little bugs and inconsistencies in OpenSSL.{pm,xs} and openssl_bio.xs. PS: I'm still not convinces whether we should try to make this finally running or kick it out and replace it with some other module....
Diffstat (limited to 'perl/openssl.h')
-rw-r--r--perl/openssl.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/perl/openssl.h b/perl/openssl.h
index 299d10e372..d1b6489ea7 100644
--- a/perl/openssl.h
+++ b/perl/openssl.h
@@ -58,18 +58,19 @@
#ifdef __cplusplus
extern "C" {
#endif
+
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
+
#ifdef __cplusplus
}
#endif
-typedef struct datum_st
- {
- char *dptr;
- int dsize;
- } datum;
+typedef struct datum_st {
+ char *dptr;
+ int dsize;
+} datum;
#include "crypto.h"
#include "buffer.h"
@@ -79,10 +80,10 @@ typedef struct datum_st
#include "x509.h"
#include "ssl.h"
-#if 0
-#define pr_name(name) printf("%s\n",name)
-#define pr_name_d(name,p2) printf("%s %d\n",name,p2)
-#define pr_name_dd(name,p2,p3) printf("%s %d %d\n",name,p2,p3)
+#ifdef DEBUG
+#define pr_name(name) printf("%s\n",name)
+#define pr_name_d(name,p2) printf("%s %d\n",name,p2)
+#define pr_name_dd(name,p2,p3) printf("%s %d %d\n",name,p2,p3)
#else
#define pr_name(name)
#define pr_name_d(name,p2)
@@ -90,7 +91,6 @@ typedef struct datum_st
#endif
SV *new_ref(char *type, char *obj, int mort);
-int ex_new(char *obj,SV *data,CRYPTO_EX_DATA *ad,int idx,long argl,char *argp);
-void ex_cleanup(char *obj,SV *data,CRYPTO_EX_DATA *ad,int idx,
- long argl,char *argp);
+int ex_new(char *obj, SV *data, CRYPTO_EX_DATA *ad, int idx, long argl, char *argp);
+void ex_cleanup(char *obj, SV *data, CRYPTO_EX_DATA *ad, int idx, long argl, char *argp);