Skip to content

Commit

Permalink
card-piv.c - For testing only ENABLE_PIV_SM or ENABLE_NIST_SM allowed
Browse files Browse the repository at this point in the history
Only one, but not both defines:  ENABLE_PIV_SM or ENABLE_NIST_SM
can be set at same time. This it to keep the PIV_SM code
in the source while working on this branch.

 On branch sm-nist
 Changes to be committed:
	modified:   src/libopensc/card-piv.c
  • Loading branch information
dengert committed Apr 2, 2024
1 parent ab9b256 commit cb820a7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/libopensc/card-piv.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
#undef ENABLE_NIST_SM
#endif

/* TODO During testing of ENABLE_NIST_SM, ENABLE_PIV_SM should not be set. */
#if defined(ENABLE_PIV_SM) && defined(ENABLE_NIST_SM)
#undef ENABLE_PIV_SM
#endif /* defined(ENABLE_PIV_SM) */

#ifdef ENABLE_NIST_SM
#include "sm/sm-nist.h"
#endif
Expand All @@ -71,6 +76,12 @@
#include "cardctl.h"
#include "simpletlv.h"

/* TODO internal includes config.h ! */
/* TODO During testing of ENABLE_NIST_SM, ENABLE_PIV_SM should not be set. */
#if defined(ENABLE_PIV_SM) && defined(ENABLE_NIST_SM)
#undef ENABLE_PIV_SM
#endif /* defined(ENABLE_PIV_SM) */

enum {
PIV_OBJ_CCC = 0,
PIV_OBJ_CHUI,
Expand Down

0 comments on commit cb820a7

Please sign in to comment.