From e76b3fc3b16ea98f5980e8c246e96ff2c69d112f Mon Sep 17 00:00:00 2001 From: Zhi Guan <guanzhi1980@gmail.com> Date: Sun, 19 May 2024 19:02:04 +0800 Subject: [PATCH] Update pem.c --- src/pem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pem.c b/src/pem.c index 64a401ac0..a53fba40a 100644 --- a/src/pem.c +++ b/src/pem.c @@ -85,7 +85,7 @@ int pem_read(FILE *fp, const char *name, uint8_t *data, size_t *datalen, size_t if (!fgets(line, sizeof(line), fp)) { if (feof(fp)) { - error_print(); + //error_print(); return 0; } else { error_print(); @@ -95,8 +95,8 @@ int pem_read(FILE *fp, const char *name, uint8_t *data, size_t *datalen, size_t remove_newline(line); if (strcmp(line, begin_line) != 0) { - fprintf(stderr, "%s %d: %s\n", __FILE__, __LINE__, line); - fprintf(stderr, "%s %d: %s\n", __FILE__, __LINE__, begin_line); + //fprintf(stderr, "%s %d: %s\n", __FILE__, __LINE__, line); + //fprintf(stderr, "%s %d: %s\n", __FILE__, __LINE__, begin_line); error_print(); return -1; }