提交 e8e55976 编写于 作者: P Paul Yang 提交者: Bernd Edlinger

Fix inaccurate comments in bn_prime.c

As well as a coding style nit is fixed.
Reviewed-by: NRich Salz <rsalz@openssl.org>
Reviewed-by: NBernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/3763)
上级 6544a91c
/* /*
* WARNING: do not edit! * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
* Generated by crypto/bn/bn_prime.pl
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
* *
* Licensed under the OpenSSL license (the "License"). You may not use * Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy * this file except in compliance with the License. You can obtain a copy
...@@ -80,7 +78,7 @@ int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, ...@@ -80,7 +78,7 @@ int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe,
goto err; goto err;
BN_CTX_start(ctx); BN_CTX_start(ctx);
t = BN_CTX_get(ctx); t = BN_CTX_get(ctx);
if (!t) if (t == NULL)
goto err; goto err;
loop: loop:
/* make a random number and set the top and bottom bits */ /* make a random number and set the top and bottom bits */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册