summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ts/ts_verify_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ts/ts_verify_ctx.c')
-rw-r--r--src/lib/libcrypto/ts/ts_verify_ctx.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ts/ts_verify_ctx.c b/src/lib/libcrypto/ts/ts_verify_ctx.c
index a7b90f9e4c..5a2d95c680 100644
--- a/src/lib/libcrypto/ts/ts_verify_ctx.c
+++ b/src/lib/libcrypto/ts/ts_verify_ctx.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ts_verify_ctx.c,v 1.13 2023/04/25 17:52:54 tb Exp $ */ 1/* $OpenBSD: ts_verify_ctx.c,v 1.14 2023/07/07 07:25:21 beck Exp $ */
2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL 2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
3 * project 2003. 3 * project 2003.
4 */ 4 */
@@ -74,6 +74,7 @@ TS_VERIFY_CTX_new(void)
74 74
75 return ctx; 75 return ctx;
76} 76}
77LCRYPTO_ALIAS(TS_VERIFY_CTX_new);
77 78
78void 79void
79TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx) 80TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx)
@@ -84,6 +85,7 @@ TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx)
84 TS_VERIFY_CTX_cleanup(ctx); 85 TS_VERIFY_CTX_cleanup(ctx);
85 free(ctx); 86 free(ctx);
86} 87}
88LCRYPTO_ALIAS(TS_VERIFY_CTX_free);
87 89
88void 90void
89TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx) 91TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx)
@@ -107,6 +109,7 @@ TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx)
107 109
108 memset(ctx, 0, sizeof(*ctx)); 110 memset(ctx, 0, sizeof(*ctx));
109} 111}
112LCRYPTO_ALIAS(TS_VERIFY_CTX_cleanup);
110 113
111/* 114/*
112 * XXX: The following accessors demonstrate the amount of care and thought that 115 * XXX: The following accessors demonstrate the amount of care and thought that
@@ -127,6 +130,7 @@ TS_VERIFY_CTX_add_flags(TS_VERIFY_CTX *ctx, int flags)
127 130
128 return ctx->flags; 131 return ctx->flags;
129} 132}
133LCRYPTO_ALIAS(TS_VERIFY_CTX_add_flags);
130 134
131int 135int
132TS_VERIFY_CTX_set_flags(TS_VERIFY_CTX *ctx, int flags) 136TS_VERIFY_CTX_set_flags(TS_VERIFY_CTX *ctx, int flags)
@@ -135,6 +139,7 @@ TS_VERIFY_CTX_set_flags(TS_VERIFY_CTX *ctx, int flags)
135 139
136 return ctx->flags; 140 return ctx->flags;
137} 141}
142LCRYPTO_ALIAS(TS_VERIFY_CTX_set_flags);
138 143
139BIO * 144BIO *
140TS_VERIFY_CTX_set_data(TS_VERIFY_CTX *ctx, BIO *bio) 145TS_VERIFY_CTX_set_data(TS_VERIFY_CTX *ctx, BIO *bio)
@@ -143,6 +148,7 @@ TS_VERIFY_CTX_set_data(TS_VERIFY_CTX *ctx, BIO *bio)
143 148
144 return ctx->data; 149 return ctx->data;
145} 150}
151LCRYPTO_ALIAS(TS_VERIFY_CTX_set_data);
146 152
147X509_STORE * 153X509_STORE *
148TS_VERIFY_CTX_set_store(TS_VERIFY_CTX *ctx, X509_STORE *store) 154TS_VERIFY_CTX_set_store(TS_VERIFY_CTX *ctx, X509_STORE *store)
@@ -151,6 +157,7 @@ TS_VERIFY_CTX_set_store(TS_VERIFY_CTX *ctx, X509_STORE *store)
151 157
152 return ctx->store; 158 return ctx->store;
153} 159}
160LCRYPTO_ALIAS(TS_VERIFY_CTX_set_store);
154 161
155STACK_OF(X509) * 162STACK_OF(X509) *
156TS_VERIFY_CTX_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs) 163TS_VERIFY_CTX_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs)
@@ -159,6 +166,7 @@ TS_VERIFY_CTX_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs)
159 166
160 return ctx->certs; 167 return ctx->certs;
161} 168}
169LCRYPTO_ALIAS(TS_VERIFY_CTX_set_certs);
162 170
163unsigned char * 171unsigned char *
164TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx, unsigned char *imprint, 172TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx, unsigned char *imprint,
@@ -171,6 +179,7 @@ TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx, unsigned char *imprint,
171 179
172 return ctx->imprint; 180 return ctx->imprint;
173} 181}
182LCRYPTO_ALIAS(TS_VERIFY_CTX_set_imprint);
174 183
175TS_VERIFY_CTX * 184TS_VERIFY_CTX *
176TS_REQ_to_TS_VERIFY_CTX(TS_REQ *req, TS_VERIFY_CTX *ctx) 185TS_REQ_to_TS_VERIFY_CTX(TS_REQ *req, TS_VERIFY_CTX *ctx)
@@ -224,3 +233,4 @@ err:
224 TS_VERIFY_CTX_free(ret); 233 TS_VERIFY_CTX_free(ret);
225 return NULL; 234 return NULL;
226} 235}
236LCRYPTO_ALIAS(TS_REQ_to_TS_VERIFY_CTX);