Skip to content

Commit 21a1ca3

Browse files
committed
ecc: Fix wrong ECDSA algorithm-identifier
Omit parameter field for AlgorithmIdentifiers for ECDSA signatures. Fixes #150 Signed-off-by: Silas Meier <silas.meier@gapfruit.com>
1 parent 8a55726 commit 21a1ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tpm2-provider-x509.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ tpm2_get_ecdsa_algor(TPM2_ALG_ID digalg)
210210

211211
if ((x509_algor = X509_ALGOR_new()) == NULL)
212212
return NULL;
213-
X509_ALGOR_set0(x509_algor, oid, V_ASN1_NULL, NULL);
213+
X509_ALGOR_set0(x509_algor, oid, V_ASN1_UNDEF, NULL);
214214

215215
return x509_algor;
216216
}

0 commit comments

Comments
 (0)