summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-10-14 12:42:52 +0000
committertb <>2024-10-14 12:42:52 +0000
commit232952b737a80765ddc649d2c2f57e620853cf92 (patch)
tree14de19f8e6728dcae8d34e7ab504ff5283cdf844 /src
parent312ef43ec8326eb44dbe8ead7ce1830cfdf3a100 (diff)
downloadopenbsd-232952b737a80765ddc649d2c2f57e620853cf92.tar.gz
openbsd-232952b737a80765ddc649d2c2f57e620853cf92.tar.bz2
openbsd-232952b737a80765ddc649d2c2f57e620853cf92.zip
Drop an obvious comment and fix indent for setting the seed
Also remove a pointless cast. ok jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ec/ec_asn1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c
index 5a38063d9f..acab513748 100644
--- a/src/lib/libcrypto/ec/ec_asn1.c
+++ b/src/lib/libcrypto/ec/ec_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_asn1.c,v 1.69 2024/10/14 12:38:11 tb Exp $ */ 1/* $OpenBSD: ec_asn1.c,v 1.70 2024/10/14 12:42:52 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -669,14 +669,13 @@ ec_asn1_group2curve(const EC_GROUP *group, X9_62_CURVE *curve)
669 ASN1_BIT_STRING_free(curve->seed); 669 ASN1_BIT_STRING_free(curve->seed);
670 curve->seed = NULL; 670 curve->seed = NULL;
671 671
672 /* set the seed (optional) */
673 if (group->seed != NULL) { 672 if (group->seed != NULL) {
674 if ((curve->seed = ASN1_BIT_STRING_new()) == NULL) { 673 if ((curve->seed = ASN1_BIT_STRING_new()) == NULL) {
675 ECerror(ERR_R_MALLOC_FAILURE); 674 ECerror(ERR_R_MALLOC_FAILURE);
676 goto err; 675 goto err;
677 } 676 }
678 if (!ASN1_BIT_STRING_set(curve->seed, group->seed, 677 if (!ASN1_BIT_STRING_set(curve->seed,
679 (int) group->seed_len)) { 678 group->seed, group->seed_len)) {
680 ECerror(ERR_R_ASN1_LIB); 679 ECerror(ERR_R_ASN1_LIB);
681 goto err; 680 goto err;
682 } 681 }