Skip to content

Commit 161b3be

Browse files
committed
There is also no private PEM API if it's disabled
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 77bc1a7 commit 161b3be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/headers/tomcrypt_private.h

Lines changed: 2 additions & 0 deletions
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)