====================================================================*/
#include <stdio.h>
-#include "cryptlib.h"
+#include <string.h>
#include <openssl/crypto.h>
#include <openssl/pem.h>
#include <openssl/dso.h>
-#include "eng_int.h"
-#include "engine.h"
#include <openssl/engine.h>
#ifndef OPENSSL_NO_HW
#endif
#define SUREWARE_LIB_NAME "sureware engine"
-#include "hw_sureware_err.c"
+#include "e_sureware_err.c"
static int surewarehk_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)());
static int surewarehk_destroy(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
err:
if (buf)
{
- memset(buf,0,tlen);
+ OPENSSL_cleanse(buf,tlen);
OPENSSL_free(buf);
}
return ret;