diff options
author | Fraser Tweedale <ftweedal@redhat.com> | 2021-02-05 11:00:24 +1100 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2021-02-11 13:57:25 -0500 |
commit | 457ce648b654990cb101f66255b4a87b7339efc1 (patch) | |
tree | b90ad8a2e41cae3e0d4280aec28ddd5640db80ff /src/plugins | |
parent | 13ae08e70a05768d4f65978ce1a8d4e16fec0d35 (diff) | |
download | krb5-457ce648b654990cb101f66255b4a87b7339efc1.zip krb5-457ce648b654990cb101f66255b4a87b7339efc1.tar.gz krb5-457ce648b654990cb101f66255b4a87b7339efc1.tar.bz2 |
Infer name type when creating principals
In the krb5_parse_name() and krb5_build_principal() families, infer
the name type if the principal is a TGS name or has first component
WELLKNOWN.
Revert commit 0d5df56ea6d4a05c31b7e513ee9ec1542a4b5dce and part of
commit 5994d8928b8ff88751b14bc60c7d7bfce8b30e57 since that
responsibility now lies with krb5_build_principal_ext().
[ghudson@mit.edu: made editorial changes; added removal of
no-longer-needed code; added documentation; rewrote commit message]
ticket: 8983 (new)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/preauth/pkinit/pkinit_kdf_test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/preauth/pkinit/pkinit_kdf_test.c b/src/plugins/preauth/pkinit/pkinit_kdf_test.c index 7acbd0d..5f60de9 100644 --- a/src/plugins/preauth/pkinit/pkinit_kdf_test.c +++ b/src/plugins/preauth/pkinit/pkinit_kdf_test.c @@ -112,6 +112,10 @@ main(int argc, char **argv) goto cleanup; } + /* The test vectors in RFC 8636 implicitly use NT-PRINCIPAL names. */ + u_principal->type = KRB5_NT_PRINCIPAL; + v_principal->type = KRB5_NT_PRINCIPAL; + /* set-up the as_req and and pk_as_rep data */ memset(twenty_as, 0xaa, sizeof(twenty_as)); memset(eighteen_bs, 0xbb, sizeof(eighteen_bs)); |