projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use an OCTET STRING for the encoding of an OCSP nonce value.
[oweals/openssl.git]
/
engines
/
e_sureware.c
diff --git
a/engines/e_sureware.c
b/engines/e_sureware.c
index dced97c695a568f3cffed2942e92c8a715321684..8e77e5c282fb05dbddbcb619200a84f505a6c34e 100644
(file)
--- a/
engines/e_sureware.c
+++ b/
engines/e_sureware.c
@@
-51,6
+51,7
@@
====================================================================*/
#include <stdio.h>
====================================================================*/
#include <stdio.h>
+#include <string.h>
#include <openssl/crypto.h>
#include <openssl/pem.h>
#include <openssl/dso.h>
#include <openssl/crypto.h>
#include <openssl/pem.h>
#include <openssl/dso.h>
@@
-68,7
+69,7
@@
#define SUREWARE_LIB_NAME "sureware engine"
#include "e_sureware_err.c"
#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);
static int surewarehk_destroy(ENGINE *e);
static int surewarehk_init(ENGINE *e);
static int surewarehk_finish(ENGINE *e);
@@
-121,7
+122,8
@@
static RSA_METHOD surewarehk_rsa =
0, /* RSA flag*/
NULL,
NULL, /* OpenSSL sign*/
0, /* RSA flag*/
NULL,
NULL, /* OpenSSL sign*/
- NULL /* OpenSSL verify*/
+ NULL, /* OpenSSL verify*/
+ NULL /* keygen */
};
#endif
};
#endif
@@
-143,7
+145,8
@@
static DH_METHOD surewarehk_dh =
NULL, /* init*/
NULL, /* finish*/
0, /* flags*/
NULL, /* init*/
NULL, /* finish*/
0, /* flags*/
- NULL
+ NULL,
+ NULL
};
#endif
};
#endif
@@
-192,6
+195,8
@@
static DSA_METHOD surewarehk_dsa =
NULL,/*finish*/
0,
NULL,
NULL,/*finish*/
0,
NULL,
+ NULL,
+ NULL
};
#endif
};
#endif
@@
-363,7
+368,7
@@
static BIO *logstream = NULL;
* called, the checking and error handling is probably down there.
*/
static int threadsafe=1;
* 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;
{
int to_return = 1;
@@
-905,7
+910,7
@@
static int surewarehk_rsa_priv_dec(int flen,const unsigned char *from,unsigned c
err:
if (buf)
{
err:
if (buf)
{
-
memset(buf,0
,tlen);
+
OPENSSL_cleanse(buf
,tlen);
OPENSSL_free(buf);
}
return ret;
OPENSSL_free(buf);
}
return ret;