Skip to content

Instantly share code, notes, and snippets.

@tipt0e
tipt0e / rude_pk-init.snippet
Created November 12, 2010 02:07
pkinit snippet
if (!auth.pkcert) {
krb5_get_init_creds_opt_set_pa_password(context, opt,
auth.password->bv_val,
NULL);
} else {
krb5_get_init_creds_opt_set_pkinit(context, opt, target,
auth.pkcert, NULL, NULL, NULL,
0, 0, NULL,
auth.password->bv_val);
}