diff options
Diffstat (limited to 'src/lib/libcrypto/ts/ts_verify_ctx.c')
| -rw-r--r-- | src/lib/libcrypto/ts/ts_verify_ctx.c | 12 |
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 | } |
| 77 | LCRYPTO_ALIAS(TS_VERIFY_CTX_new); | ||
| 77 | 78 | ||
| 78 | void | 79 | void |
| 79 | TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx) | 80 | TS_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 | } |
| 88 | LCRYPTO_ALIAS(TS_VERIFY_CTX_free); | ||
| 87 | 89 | ||
| 88 | void | 90 | void |
| 89 | TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx) | 91 | TS_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 | } |
| 112 | LCRYPTO_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 | } |
| 133 | LCRYPTO_ALIAS(TS_VERIFY_CTX_add_flags); | ||
| 130 | 134 | ||
| 131 | int | 135 | int |
| 132 | TS_VERIFY_CTX_set_flags(TS_VERIFY_CTX *ctx, int flags) | 136 | TS_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 | } |
| 142 | LCRYPTO_ALIAS(TS_VERIFY_CTX_set_flags); | ||
| 138 | 143 | ||
| 139 | BIO * | 144 | BIO * |
| 140 | TS_VERIFY_CTX_set_data(TS_VERIFY_CTX *ctx, BIO *bio) | 145 | TS_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 | } |
| 151 | LCRYPTO_ALIAS(TS_VERIFY_CTX_set_data); | ||
| 146 | 152 | ||
| 147 | X509_STORE * | 153 | X509_STORE * |
| 148 | TS_VERIFY_CTX_set_store(TS_VERIFY_CTX *ctx, X509_STORE *store) | 154 | TS_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 | } |
| 160 | LCRYPTO_ALIAS(TS_VERIFY_CTX_set_store); | ||
| 154 | 161 | ||
| 155 | STACK_OF(X509) * | 162 | STACK_OF(X509) * |
| 156 | TS_VERIFY_CTX_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs) | 163 | TS_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 | } |
| 169 | LCRYPTO_ALIAS(TS_VERIFY_CTX_set_certs); | ||
| 162 | 170 | ||
| 163 | unsigned char * | 171 | unsigned char * |
| 164 | TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx, unsigned char *imprint, | 172 | TS_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 | } |
| 182 | LCRYPTO_ALIAS(TS_VERIFY_CTX_set_imprint); | ||
| 174 | 183 | ||
| 175 | TS_VERIFY_CTX * | 184 | TS_VERIFY_CTX * |
| 176 | TS_REQ_to_TS_VERIFY_CTX(TS_REQ *req, TS_VERIFY_CTX *ctx) | 185 | TS_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 | } |
| 236 | LCRYPTO_ALIAS(TS_REQ_to_TS_VERIFY_CTX); | ||
