@@ -957,6 +957,11 @@ def build_ffi(local_wolfssl, features):
957957
958958 word32 wc_EncodeSignature(byte* out, const byte* digest, word32 digSz,
959959 int hashOID);
960+ int wc_PemToDer(const unsigned char* buff, long longSz, int type,
961+ DerBuffer** pDer, void* heap, EncryptedInfo* info,
962+ int* keyFormat);
963+ int wc_DerToPemEx(const byte* der, word32 derSz, byte* output, word32 outSz,
964+ byte *cipher_info, int type);
960965 """
961966
962967 if features ["ASN" ] or features ["RSA" ]:
@@ -965,15 +970,6 @@ def build_ffi(local_wolfssl, features):
965970 int wc_GetPkcs8TraditionalOffset(byte* input, word32* inOutIdx, word32 sz);
966971 """
967972
968- if features ["KEYGEN" ]:
969- cdef += """
970- int wc_PemToDer(const unsigned char* buff, long longSz, int type,
971- DerBuffer** pDer, void* heap, EncryptedInfo* info,
972- int* keyFormat);
973- int wc_DerToPemEx(const byte* der, word32 derSz, byte* output, word32 outSz,
974- byte *cipher_info, int type);
975- """
976-
977973 if features ["WC_RNG_SEED_CB" ]:
978974 cdef += """
979975 typedef int (*wc_RngSeed_Cb)(OS_Seed* os, byte* seed, word32 sz);
0 commit comments