mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
Fix const issues
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
This commit is contained in:
parent
bda1f0c0d6
commit
5db120dc35
@ -206,6 +206,7 @@ static int convert_bn_memory(const unsigned char *in, size_t bytes,
|
||||
{
|
||||
int n = bytes * 2, i;
|
||||
char *p = out, *q = NULL;
|
||||
const char *r;
|
||||
|
||||
if (bn != NULL && !BN_is_zero(bn)) {
|
||||
hex_convert_memory(in, bytes, out, BN_OUTPUT_SIZE);
|
||||
@ -248,10 +249,10 @@ static int convert_bn_memory(const unsigned char *in, size_t bytes,
|
||||
}
|
||||
*p = '\0';
|
||||
if (bn == NULL)
|
||||
q = "NULL";
|
||||
r = "NULL";
|
||||
else
|
||||
q = BN_is_negative(bn) ? "-0" : "0";
|
||||
strcpy(p - strlen(q), q);
|
||||
r = BN_is_negative(bn) ? "-0" : "0";
|
||||
strcpy(p - strlen(r), r);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user