Skip to content

Instantly share code, notes, and snippets.

@tipt0e
Created November 12, 2010 02:07
Show Gist options
  • Save tipt0e/673614 to your computer and use it in GitHub Desktop.
Save tipt0e/673614 to your computer and use it in GitHub Desktop.
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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment