Skip to content

Commit 3a775da

Browse files
pattopsjaeckel
authored andcommitted
support compilation of x509 without LTC_MECC
1 parent a5765d2 commit 3a775da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pk/asn1/x509/x509_decode_public_key_from_certificate.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ int x509_decode_public_key_from_certificate(const unsigned char *in, unsigned lo
8181
&& (l->data != NULL)
8282
&& LOOKS_LIKE_SPKI(l->child)) {
8383
if (algorithm == PKA_EC) {
84+
#ifdef LTC_MECC
8485
err = ecc_import_subject_public_key_info(l->data, l->size, ctx);
86+
#else
87+
err = CRYPT_ERROR;
88+
#endif
8589
} else {
8690
err = x509_decode_subject_public_key_info(l->data, l->size,
8791
algorithm, tmpbuf, &tmpbuf_len,

0 commit comments

Comments
 (0)