krb5: krb5_get_init_creds_opt_set_pkinit flag names

Add macros to give symbolic names to the flags which can be passed to
krb5_get_init_creds_opt_set_pkinit(). Reserve flags for BTMM and not validating
KDC anchors.
This commit is contained in:
Luke Howard
2019-05-06 11:29:04 +10:00
committed by Jeffrey Altman
parent bcc90f1b87
commit 5ca229e0d9
3 changed files with 13 additions and 4 deletions

View File

@@ -537,8 +537,8 @@ get_new_tickets(krb5_context context,
pk_x509_anchors,
NULL,
NULL,
pk_use_enckey ? 2 : 0 |
anonymous_pkinit ? 4 : 0,
pk_use_enckey ? KRB5_GIC_OPT_PKINIT_USE_ENCKEY : 0 |
anonymous_pkinit ? KRB5_GIC_OPT_PKINIT_ANONYMOUS : 0,
prompter,
NULL,
passwd);