diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_ctx.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_ctx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bn/bn_ctx.c b/src/lib/libcrypto/bn/bn_ctx.c index eb2d6a43b3..1237ac1365 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.14 2015/02/10 09:50:12 miod Exp $ */ | 1 | /* $OpenBSD: bn_ctx.c,v 1.15 2017/01/29 17:49:22 beck Exp $ */ |
2 | /* Written by Ulf Moeller for the OpenSSL project. */ | 2 | /* Written by Ulf Moeller for the OpenSSL project. */ |
3 | /* ==================================================================== | 3 | /* ==================================================================== |
4 | * Copyright (c) 1998-2004 The OpenSSL Project. All rights reserved. | 4 | * Copyright (c) 1998-2004 The OpenSSL Project. All rights reserved. |
@@ -225,7 +225,7 @@ BN_CTX_new(void) | |||
225 | { | 225 | { |
226 | BN_CTX *ret = malloc(sizeof(BN_CTX)); | 226 | BN_CTX *ret = malloc(sizeof(BN_CTX)); |
227 | if (!ret) { | 227 | if (!ret) { |
228 | BNerr(BN_F_BN_CTX_NEW, ERR_R_MALLOC_FAILURE); | 228 | BNerror(ERR_R_MALLOC_FAILURE); |
229 | return NULL; | 229 | return NULL; |
230 | } | 230 | } |
231 | 231 | ||
@@ -274,7 +274,7 @@ BN_CTX_start(BN_CTX *ctx) | |||
274 | ctx->err_stack++; | 274 | ctx->err_stack++; |
275 | /* (Try to) get a new frame pointer */ | 275 | /* (Try to) get a new frame pointer */ |
276 | else if (!BN_STACK_push(&ctx->stack, ctx->used)) { | 276 | else if (!BN_STACK_push(&ctx->stack, ctx->used)) { |
277 | BNerr(BN_F_BN_CTX_START, BN_R_TOO_MANY_TEMPORARY_VARIABLES); | 277 | BNerror(BN_R_TOO_MANY_TEMPORARY_VARIABLES); |
278 | ctx->err_stack++; | 278 | ctx->err_stack++; |
279 | } | 279 | } |
280 | CTXDBG_EXIT(ctx); | 280 | CTXDBG_EXIT(ctx); |
@@ -312,7 +312,7 @@ BN_CTX_get(BN_CTX *ctx) | |||
312 | /* Setting too_many prevents repeated "get" attempts from | 312 | /* Setting too_many prevents repeated "get" attempts from |
313 | * cluttering the error stack. */ | 313 | * cluttering the error stack. */ |
314 | ctx->too_many = 1; | 314 | ctx->too_many = 1; |
315 | BNerr(BN_F_BN_CTX_GET, BN_R_TOO_MANY_TEMPORARY_VARIABLES); | 315 | BNerror(BN_R_TOO_MANY_TEMPORARY_VARIABLES); |
316 | return NULL; | 316 | return NULL; |
317 | } | 317 | } |
318 | /* OK, make sure the returned bignum is "zero" */ | 318 | /* OK, make sure the returned bignum is "zero" */ |