#include <openssl/rsa.h>
#include "evp_locl.h"
+/* This stuff should now all be supported through
+ * crypto/engine/hw_openbsd_dev_crypto.c unless I botched it up */
+static void *dummy=&dummy;
+
+#if 0
+
/* check flag after OpenSSL headers to ensure make depend works */
#ifdef OPENSSL_OPENBSD_DEV_CRYPTO
return 0;
CDATA(ctx)->key=OPENSSL_malloc(MAX_HW_KEY);
+ if (CDATA(ctx)->key == NULL)
+ return 0;
assert(ctx->cipher->iv_len <= MAX_HW_IV);
if(((unsigned long)in&3) || cinl != inl)
{
cin=OPENSSL_malloc(cinl);
+ if (cin == NULL)
+ return 0;
memcpy(cin,in,inl);
cryp.src=cin;
}
if(((unsigned long)out&3) || cinl != inl)
{
cout=OPENSSL_malloc(cinl);
+ if (cout == NULL)
+ {
+ if (cin != NULL)
+ OPENSSL_free(cin);
+ return 0;
+ }
cryp.dst=cout;
}
{ return &md5_md; }
#endif
+#endif