! XMLSIG [100] - XMLSIG.SBR related symbols
!------------------------------------------------------------------------
!EDIT HISTORY
! [100] 29-Feb-20 / jdm / created
!------------------------------------------------------------------------
!REQUIREMENTS
!   6.5.1677.0
!NOTES
!------------------------------------------------------------------------

! op 
define XMLSIG_OP_SIGN           = &h0001    ! sign the doc 
define XMLSIG_OP_VERIFY         = &h0002    ! verify sigs in doc 

! flags
define XMLSIG_LOC_SIB_AFTER     = &h0100    ! location mod flag sibling after 
define XMLSIG_LOC_SIB_BEFORE    = &h0200    ! location mod flag sibling before 
define XMLSIG_AUTOTRIM          = &h0400    ! auto trim whitespace when loading xml src from string 

define XMLSIG_CERT_TYPE_PFX     = &h1000    ! cert arg is actually a pfx; key should be null 
define XMLSIG_DEBUG             = &h8000    ! output debug info to xmlsigdbg.log

! canonalgo choices (canonicalization algorithm
define XMLSIG_CANALGO_C14N                      = 1  
define XMLSIG_CANALGO_C14N_11                   = 2
define XMLSIG_CANALGO_EXCL_C14N                 = 3  ! (default) 
define XMLSIG_CANALGO_C14N_WITH_COMMENTS        = 4
define XMLSIG_CANALGO_C14N_11_WITH_COMMENTS     = 5
define XMLSIG_CANALGO_EXCL_C14N_WITH_COMMENTS   = 6

! keyinfo flags (choose 1)
define XMLSIG_KEYINFO_NONE          = &h0000
define XMLSIG_KEYINFO_KEYNAME       = &h0001        
define XMLSIG_KEYINFO_KEYVALUE      = &h0002
define XMLSIG_KEYINFO_X509DATA      = &h0003
define XMLSIG_KEYINFO_X509DATA_KEY  = &h0004
define XMLSIG_KEYINFO_CUSTOM        = &h0005   ! see CustKeyInfo param 

! keyinfo X509DATA flags (one or more if XMLSIG_KEYINFO_X509DATA) 
define XMLSIG_X509TYPE_CERT          = &h0010
define XMLSIG_X509TYPE_CERTCHAIN     = &h0020
define XMLSIG_X509TYPE_ISSUER_SERIAL = &h0040
define XMLSIG_X509TYPE_SUBJNAME      = &h0080
define XMLSIG_X509TYPE_SKI           = &h0100

! behaviorflags (zero or more) 
define XMLSIG_BHV_ATTRIB_SORTING_BUG    = &h0001
define XMLSIG_BHV_FORCE_ADD_SIG_XFORM   = &h0002
define XMLSIG_BHV_EBXML_XFORM           = &h0004
define XMLSIG_BHV_XFORM_SIG_XPATH       = &h0008
define XMLSIG_BHV_COMPACT_SIG_XML       = &h0010
define XMLSIG_BHV_INDENTED_SIG          = &h0020
define XMLSIG_BHV_FULL_LOCAL_SIG_TIME   = &h0040
define XMLSIG_BHV_LOCAL_SIG_TIME        = &h0080
define XMLSIG_BHV_DN_REV_ORDER          = &h0100
define XMLSIG_BHV_ISS_SERIAL_HEX        = &h0200
define XMLSIG_BHV_ISS_SERIAL_HEX_LOWER  = &h0400
define XMLSIG_BHV_SIG_TIME_ADJ          = &h0800     ! see timeoffset for secs 

