Skip to content

Commit 77567f7

Browse files
committed
There is also no private PEM API if it's disabled
Signed-off-by: Steffen Jaeckel <[email protected]>
1 parent 467abc2 commit 77567f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/headers/tomcrypt_private.h

+2
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ int pbes1_extract(const ltc_asn1_list *s, pbes_arg *res);
371371
int pbes2_extract(const ltc_asn1_list *s, pbes_arg *res);
372372
#endif
373373

374+
#ifdef LTC_PEM
374375
int pem_decrypt(unsigned char *data, unsigned long *datalen,
375376
unsigned char *key, unsigned long keylen,
376377
unsigned char *iv, unsigned long ivlen,
@@ -382,6 +383,7 @@ int pem_get_char_from_file(struct get_char *g);
382383
#endif /* LTC_NO_FILE */
383384
int pem_get_char_from_buf(struct get_char *g);
384385
int pem_read(void *pem, unsigned long *w, struct pem_headers *hdr, struct get_char *g);
386+
#endif
385387

386388
/* tomcrypt_pk.h */
387389

0 commit comments

Comments
 (0)