#include <stdio.h>
#include <string.h>
-#include <time.h>
+#define _XOPEN_SOURCE_EXTENDED 1 /* Or fd_set, select() and so on won't be
+ declared properly on Compaq platforms
+ (at least with DEC C).
+ */
+#ifdef OPENSSL_SYS_VMS
+# include <time.h>
+#else
+# include <sys/time.h>
+# include <sys/select.h>
+#endif
#include "apps.h"
#include <openssl/pem.h>
#include <openssl/ocsp.h>
char *itmp, *row[DB_NUMBER],**rrow;
for (i = 0; i < DB_NUMBER; i++) row[i] = NULL;
bn = ASN1_INTEGER_to_BN(ser,NULL);
+ OPENSSL_assert(bn); /* FIXME: should report an error at this point and abort */
if (BN_is_zero(bn))
itmp = BUF_strdup("00");
else
}
err:
-
- OCSP_REQ_CTX_free(ctx);
+ if (ctx)
+ OCSP_REQ_CTX_free(ctx);
return rsp;
}