@@ -15,7 +15,7 @@ static int s_ecc_import_x509_with_oid(const unsigned char *in, unsigned long inl
1515
1616 len_xy = sizeof (bin_xy );
1717 len_oid = 16 ;
18- err = x509_decode_subject_public_key_info (in , inlen , PKA_EC , bin_xy , & len_xy ,
18+ err = x509_decode_subject_public_key_info (in , inlen , LTC_OID_EC , bin_xy , & len_xy ,
1919 LTC_ASN1_OBJECT_IDENTIFIER , (void * )curveoid , & len_oid );
2020 if (err == CRYPT_OK ) {
2121 /* load curve parameters for given curve OID */
@@ -63,7 +63,7 @@ static int s_ecc_import_x509_with_curve(const unsigned char *in, unsigned long i
6363 /* try to load public key */
6464 len_xy = sizeof (bin_xy );
6565 len = 6 ;
66- err = x509_decode_subject_public_key_info (in , inlen , PKA_EC , bin_xy , & len_xy , LTC_ASN1_SEQUENCE , seq_ecparams , & len );
66+ err = x509_decode_subject_public_key_info (in , inlen , LTC_OID_EC , bin_xy , & len_xy , LTC_ASN1_SEQUENCE , seq_ecparams , & len );
6767
6868 if (err == CRYPT_OK ) {
6969 len_a = seq_curve [0 ].size ;
@@ -107,7 +107,7 @@ int ecc_import_subject_public_key_info(const unsigned char *in, unsigned long in
107107int ecc_import_x509 (const unsigned char * in , unsigned long inlen , ecc_key * key )
108108{
109109 return x509_decode_public_key_from_certificate (in , inlen ,
110- PKA_EC ,
110+ LTC_OID_EC ,
111111 LTC_ASN1_EOL , NULL , NULL ,
112112 (public_key_decode_cb )ecc_import_subject_public_key_info , key );
113113}
0 commit comments