diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-01-14 15:02:39 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-15 02:22:18 +1100 |
commit | a165bab605f7be55940bb8fae977398e8c96a46d (patch) | |
tree | 8a805f18a1f3cc5412b5f94ef64baa275f559a0b /sshbuf.h | |
parent | 7d845f4a0b7ec97887be204c3760e44de8bf1f32 (diff) |
upstream commit
avoid BIGNUM in KRL code by using a simple bitmap;
feedback and ok markus
Diffstat (limited to 'sshbuf.h')
-rw-r--r-- | sshbuf.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshbuf.h,v 1.3 2014/06/24 01:13:21 djm Exp $ */ | 1 | /* $OpenBSD: sshbuf.h,v 1.4 2015/01/14 15:02:39 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2011 Damien Miller | 3 | * Copyright (c) 2011 Damien Miller |
4 | * | 4 | * |
@@ -212,6 +212,8 @@ int sshbuf_put_bignum2_bytes(struct sshbuf *buf, const void *v, size_t len); | |||
212 | #ifdef WITH_OPENSSL | 212 | #ifdef WITH_OPENSSL |
213 | int sshbuf_get_bignum2(struct sshbuf *buf, BIGNUM *v); | 213 | int sshbuf_get_bignum2(struct sshbuf *buf, BIGNUM *v); |
214 | int sshbuf_get_bignum1(struct sshbuf *buf, BIGNUM *v); | 214 | int sshbuf_get_bignum1(struct sshbuf *buf, BIGNUM *v); |
215 | int sshbuf_get_bignum2_bytes_direct(struct sshbuf *buf, | ||
216 | const u_char **valp, size_t *lenp); | ||
215 | int sshbuf_put_bignum2(struct sshbuf *buf, const BIGNUM *v); | 217 | int sshbuf_put_bignum2(struct sshbuf *buf, const BIGNUM *v); |
216 | int sshbuf_put_bignum1(struct sshbuf *buf, const BIGNUM *v); | 218 | int sshbuf_put_bignum1(struct sshbuf *buf, const BIGNUM *v); |
217 | # ifdef OPENSSL_HAS_ECC | 219 | # ifdef OPENSSL_HAS_ECC |