#include <openssl/pem.h>
#include <openssl/dso.h>
#include <openssl/engine.h>
+#include <openssl/rand.h>
#ifndef OPENSSL_NO_HW
#ifndef OPENSSL_NO_HW_SUREWARE
#define SUREWARE_LIB_NAME "sureware engine"
#include "e_sureware_err.c"
-static int surewarehk_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)());
+static int surewarehk_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void));
static int surewarehk_destroy(ENGINE *e);
static int surewarehk_init(ENGINE *e);
static int surewarehk_finish(ENGINE *e);
0, /* RSA flag*/
NULL,
NULL, /* OpenSSL sign*/
- NULL /* OpenSSL verify*/
+ NULL, /* OpenSSL verify*/
+ NULL /* keygen */
};
#endif
NULL, /* init*/
NULL, /* finish*/
0, /* flags*/
- NULL
+ NULL,
+ NULL
};
#endif
NULL,/*finish*/
0,
NULL,
+ NULL,
+ NULL
};
#endif
* called, the checking and error handling is probably down there.
*/
static int threadsafe=1;
-static int surewarehk_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)())
+static int surewarehk_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void))
{
int to_return = 1;
err:
if (buf)
{
- memset(buf,0,tlen);
+ OPENSSL_cleanse(buf,tlen);
OPENSSL_free(buf);
}
return ret;