Query: Need help for storing the krb5_creds(ticket) as blob format.

Santosh Kumar santoshjeergi at gmail.com
Sat Aug 25 04:43:30 EDT 2018


All,

Could you please help with information how can i store the tickets as blob:

 I'm searching if there is MIT kerberos API's similar to below heimdal
API's which helps to store as blob. could you suggest option,

   krb5_creds* tkt = getTkt();  //obtained krbtgt

  * krb5_storage* sp = krb5_storage_emem();*
*    krb5_store_creds(sp, (krb5_creds*)tkt);*
*    krb5_data sp_data;*
*    memset(&sp_data, 0, sizeof(sp_data));*
*    krb5_storage_to_data(sp, &sp_data);*
    //Blob* blob = new Blob((char*)sp_data.data,  sp_data.length)
*    krb5_storage_free(sp);*


Thanks much
Santosh


More information about the Kerberos mailing list