Skip to content

Commit f9f7355

Browse files
committed
Make wc_PemToDer|wc_DerToPemEx depend only on ASN not KEYGEN
These functions are actually not tied to the KEYGEN feature.
1 parent 4f37e78 commit f9f7355

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

scripts/build_ffi.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)