Subject: | Support for non c99 compilers |
You might close this as wontfix, and I wouldn't blame you, but I had to change SSLeay.xs, as the ancient compiler I am forced to use on one older platform did not support declaring variables after code. I did see PREINIT used in many other places, so I'm hoping you accept this patch, to make leave easier for us people stuck in the past.
Diff:
@@ -5453,12 +5453,13 @@
OCSP_RESPONSE *rsp
SV *svreq
unsigned long flags
- CODE:
+ PREINIT:
SSL_CTX *ctx;
X509_STORE *store;
OCSP_BASICRESP *bsr;
OCSP_REQUEST *req = NULL;
int i;
+ CODE:
if (!ssl) croak("not a SSL object");
ctx = SSL_get_SSL_CTX(ssl);