diff options
| author | tb <> | 2025-12-21 10:02:05 +0000 |
|---|---|---|
| committer | tb <> | 2025-12-21 10:02:05 +0000 |
| commit | 201345d4cb3b3bc5becda9effb8a5e068718923a (patch) | |
| tree | 5cbe172da4fa7f396fa11e8068a7fa8d0cd08ec3 /src | |
| parent | 7d8536a4ed3dd5cab592844e07c9becf575e35a9 (diff) | |
| download | openbsd-201345d4cb3b3bc5becda9effb8a5e068718923a.tar.gz openbsd-201345d4cb3b3bc5becda9effb8a5e068718923a.tar.bz2 openbsd-201345d4cb3b3bc5becda9effb8a5e068718923a.zip | |
X509_NAME_ENTRY_set_data: remove redundant parentheses
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/x509/x509name.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509/x509name.c b/src/lib/libcrypto/x509/x509name.c index d4f133bcc9..e60d8b7a3b 100644 --- a/src/lib/libcrypto/x509/x509name.c +++ b/src/lib/libcrypto/x509/x509name.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509name.c,v 1.38 2025/12/21 09:44:45 tb Exp $ */ | 1 | /* $OpenBSD: x509name.c,v 1.39 2025/12/21 10:02:05 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -404,19 +404,19 @@ int | |||
| 404 | X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, | 404 | X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, |
| 405 | const unsigned char *bytes, int len) | 405 | const unsigned char *bytes, int len) |
| 406 | { | 406 | { |
| 407 | if ((ne == NULL) || ((bytes == NULL) && (len != 0))) | 407 | if (ne == NULL || (bytes == NULL && len != 0)) |
| 408 | return (0); | 408 | return 0; |
| 409 | if ((type > 0) && (type & MBSTRING_FLAG)) | 409 | if (type > 0 && (type & MBSTRING_FLAG) != 0) |
| 410 | return ASN1_STRING_set_by_NID(&ne->value, bytes, len, type, | 410 | return ASN1_STRING_set_by_NID(&ne->value, bytes, len, type, |
| 411 | OBJ_obj2nid(ne->object)) ? 1 : 0; | 411 | OBJ_obj2nid(ne->object)) ? 1 : 0; |
| 412 | if (len < 0) | 412 | if (len < 0) |
| 413 | len = strlen((const char *)bytes); | 413 | len = strlen((const char *)bytes); |
| 414 | if (!ASN1_STRING_set(ne->value, bytes, len)) | 414 | if (!ASN1_STRING_set(ne->value, bytes, len)) |
| 415 | return (0); | 415 | return 0; |
| 416 | if (type != V_ASN1_UNDEF) | 416 | if (type != V_ASN1_UNDEF) |
| 417 | ne->value->type = type; | 417 | ne->value->type = type; |
| 418 | 418 | ||
| 419 | return (1); | 419 | return 1; |
| 420 | } | 420 | } |
| 421 | LCRYPTO_ALIAS(X509_NAME_ENTRY_set_data); | 421 | LCRYPTO_ALIAS(X509_NAME_ENTRY_set_data); |
| 422 | 422 | ||
