summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-10-14 12:42:53 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-10-14 12:42:53 +0000
commit77b3c31edd2934f06759b29b1080d51b0eb788c4 (patch)
tree27716d22999b7e1380423f535e3f663da1b52ba4
parentcdb579b16f08d57954d0f99b59dbc0daea9ed0ea (diff)
Drop an obvious comment and fix indent for setting the seed
Also remove a pointless cast. ok jsing
-rw-r--r--lib/libcrypto/ec/ec_asn1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libcrypto/ec/ec_asn1.c b/lib/libcrypto/ec/ec_asn1.c
index 5a38063d9f9..acab5137489 100644
--- a/lib/libcrypto/ec/ec_asn1.c
+++ b/lib/libcrypto/ec/ec_asn1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ec_asn1.c,v 1.69 2024/10/14 12:38:11 tb Exp $ */
+/* $OpenBSD: ec_asn1.c,v 1.70 2024/10/14 12:42:52 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
@@ -669,14 +669,13 @@ ec_asn1_group2curve(const EC_GROUP *group, X9_62_CURVE *curve)
ASN1_BIT_STRING_free(curve->seed);
curve->seed = NULL;
- /* set the seed (optional) */
if (group->seed != NULL) {
if ((curve->seed = ASN1_BIT_STRING_new()) == NULL) {
ECerror(ERR_R_MALLOC_FAILURE);
goto err;
}
- if (!ASN1_BIT_STRING_set(curve->seed, group->seed,
- (int) group->seed_len)) {
+ if (!ASN1_BIT_STRING_set(curve->seed,
+ group->seed, group->seed_len)) {
ECerror(ERR_R_ASN1_LIB);
goto err;
}