diff options
author | jsing <> | 2018-02-20 17:13:14 +0000 |
---|---|---|
committer | jsing <> | 2018-02-20 17:13:14 +0000 |
commit | 2f0d52b8a3e3ce63552d3125a01f70077b6e6b1a (patch) | |
tree | bcd4e3cc304aa2782318d21cb627e1d85a2d5dd1 /src/lib/libcrypto/bn/bn.h | |
parent | ffdc588fe5b7d401c01aa2c6d688fd0eb0c26cb3 (diff) | |
download | openbsd-2f0d52b8a3e3ce63552d3125a01f70077b6e6b1a.tar.gz openbsd-2f0d52b8a3e3ce63552d3125a01f70077b6e6b1a.tar.bz2 openbsd-2f0d52b8a3e3ce63552d3125a01f70077b6e6b1a.zip |
Provide BN_GENCB_new(), BN_GENCB_free() and BN_GENCB_get_arg()
Diffstat (limited to 'src/lib/libcrypto/bn/bn.h')
-rw-r--r-- | src/lib/libcrypto/bn/bn.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h index cca9def20b..cd94e39345 100644 --- a/src/lib/libcrypto/bn/bn.h +++ b/src/lib/libcrypto/bn/bn.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn.h,v 1.37 2018/02/20 17:02:30 jsing Exp $ */ | 1 | /* $OpenBSD: bn.h,v 1.38 2018/02/20 17:13:14 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -285,6 +285,11 @@ struct bn_gencb_st { | |||
285 | int (*cb_2)(int, int, BN_GENCB *); | 285 | int (*cb_2)(int, int, BN_GENCB *); |
286 | } cb; | 286 | } cb; |
287 | }; | 287 | }; |
288 | |||
289 | BN_GENCB *BN_GENCB_new(void); | ||
290 | void BN_GENCB_free(BN_GENCB *cb); | ||
291 | void *BN_GENCB_get_arg(BN_GENCB *cb); | ||
292 | |||
288 | /* Wrapper function to make using BN_GENCB easier, */ | 293 | /* Wrapper function to make using BN_GENCB easier, */ |
289 | int BN_GENCB_call(BN_GENCB *cb, int a, int b); | 294 | int BN_GENCB_call(BN_GENCB *cb, int a, int b); |
290 | /* Macro to populate a BN_GENCB structure with an "old"-style callback */ | 295 | /* Macro to populate a BN_GENCB structure with an "old"-style callback */ |