Skip to content

Commit

Permalink
Better macro guarding
Browse files Browse the repository at this point in the history
  • Loading branch information
lealem47 committed Oct 22, 2024
1 parent 07892ff commit 00b5111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/clu_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,11 @@ int main(int argc, char** argv)
ret = wolfCLU_sign_verify_setup(argc, argv);
break;

#if defined(HAVE_PKCS7)
case WOLFCLU_PKCS7:
ret = wolfCLU_PKCS7(argc, argv);
break;
#endif

case WOLFCLU_PKCS12:
ret = wolfCLU_PKCS12(argc, argv);
Expand Down
2 changes: 1 addition & 1 deletion src/pkcs/clu_pkcs7.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <wolfclu/x509/clu_cert.h>
#include <wolfclu/x509/clu_parse.h>

#ifndef WOLFCLU_NO_FILESYSTEM
#if defined(HAVE_PKCS7) && !defined(WOLFCLU_NO_FILESYSTEM)

static const struct option pkcs7_options[] = {
{"-print_certs", no_argument, 0, WOLFCLU_CERTFILE },
Expand Down

0 comments on commit 00b5111

Please sign in to comment.