summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn/bn_ctx.c')
-rw-r--r--src/lib/libcrypto/bn/bn_ctx.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_ctx.c b/src/lib/libcrypto/bn/bn_ctx.c
index 357eda1783..129b9c9781 100644
--- a/src/lib/libcrypto/bn/bn_ctx.c
+++ b/src/lib/libcrypto/bn/bn_ctx.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_ctx.c,v 1.21 2023/04/25 16:41:29 tb Exp $ */ 1/* $OpenBSD: bn_ctx.c,v 1.22 2023/07/08 12:21:58 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -70,6 +70,7 @@ BN_CTX_new(void)
70{ 70{
71 return calloc(1, sizeof(struct bignum_ctx)); 71 return calloc(1, sizeof(struct bignum_ctx));
72} 72}
73LCRYPTO_ALIAS(BN_CTX_new);
73 74
74void 75void
75BN_CTX_free(BN_CTX *bctx) 76BN_CTX_free(BN_CTX *bctx)
@@ -89,6 +90,7 @@ BN_CTX_free(BN_CTX *bctx)
89 90
90 freezero(bctx, sizeof(*bctx)); 91 freezero(bctx, sizeof(*bctx));
91} 92}
93LCRYPTO_ALIAS(BN_CTX_free);
92 94
93void 95void
94BN_CTX_start(BN_CTX *bctx) 96BN_CTX_start(BN_CTX *bctx)
@@ -101,6 +103,7 @@ BN_CTX_start(BN_CTX *bctx)
101 return; 103 return;
102 } 104 }
103} 105}
106LCRYPTO_ALIAS(BN_CTX_start);
104 107
105BIGNUM * 108BIGNUM *
106BN_CTX_get(BN_CTX *bctx) 109BN_CTX_get(BN_CTX *bctx)
@@ -139,6 +142,7 @@ BN_CTX_get(BN_CTX *bctx)
139 142
140 return bn; 143 return bn;
141} 144}
145LCRYPTO_ALIAS(BN_CTX_get);
142 146
143void 147void
144BN_CTX_end(BN_CTX *bctx) 148BN_CTX_end(BN_CTX *bctx)
@@ -154,3 +158,4 @@ BN_CTX_end(BN_CTX *bctx)
154 158
155 bctx->group--; 159 bctx->group--;
156} 160}
161LCRYPTO_ALIAS(BN_CTX_end);