summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-10-27 12:02:52 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-10-27 12:02:52 +0000
commite9eda23ae6eced7cb0d71440cee0431273ce8520 (patch)
treefb1080c66de37f16f345469ec0835de3dfe1f9c2 /apps
parent6caa4edd3e6410aff7c80011d905abcd3c1b1143 (diff)
Fix warnings and various issues.
C++ style comments. Signed/unsigned warning in apps.c Missing targets in jpake/Makefile
Diffstat (limited to 'apps')
-rw-r--r--apps/apps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/apps.c b/apps/apps.c
index f3087fc265..f011f0ba6a 100644
--- a/apps/apps.c
+++ b/apps/apps.c
@@ -2388,14 +2388,14 @@ static JPAKE_CTX *jpake_init(const char *us, const char *them,
BIGNUM *bnsecret = BN_new();
JPAKE_CTX *ctx;
- // Use a safe prime for p (that we found earlier)
+ /* Use a safe prime for p (that we found earlier) */
BN_hex2bn(&p, "F9E5B365665EA7A05A9C534502780FEE6F1AB5BD4F49947FD036DBD7E905269AF46EF28B0FC07487EE4F5D20FB3C0AF8E700F3A2FA3414970CBED44FEDFF80CE78D800F184BB82435D137AADA2C6C16523247930A63B85661D1FC817A51ACD96168E95898A1F83A79FFB529368AA7833ABD1B0C3AEDDB14D2E1A2F71D99F763F");
g = BN_new();
BN_set_word(g, 2);
q = BN_new();
BN_rshift1(q, p);
- BN_bin2bn(secret, strlen(secret), bnsecret);
+ BN_bin2bn((const unsigned char *)secret, strlen(secret), bnsecret);
ctx = JPAKE_CTX_new(us, them, p, g, q, bnsecret);
BN_free(bnsecret);