sanon: Fix export/import_cred mismatch
authorNicolas Williams <nico@twosigma.com>
Thu, 5 Jan 2023 22:58:57 +0000 (16:58 -0600)
committerNicolas Williams <nico@twosigma.com>
Thu, 5 Jan 2023 22:58:57 +0000 (16:58 -0600)
commitb87b813feeadc21a510effee5421705445c7f44e
tree61e550810ca3b2945cf0f1e86bdabccfe1c454c4
parent561c60ca2995322cd21f9244e45a464eb3a5141a
sanon: Fix export/import_cred mismatch

SANON cred export/import never worked correctly as the export function was
producing the wrong form of token, which was leading gss_import_cred() to
allocate more than 64MB of memory to parse the SANON exported credential.  The
recent change to reduce the default `max_alloc` of krb5_storage exposed this.
lib/gssapi/sanon/export_cred.c