krb5_context context;
krb5_error_code ret;
krb5_creds creds;
- krb5_get_init_creds_opt get_options;
+ krb5_get_init_creds_opt *get_options;
krb5_verify_init_creds_opt verify_options;
krb5_principal client, server;
#ifdef notdef
pre_auth_types, 1);
#endif
- krb5_get_init_creds_opt_init( &get_options );
+ krb5_get_init_creds_opt_alloc( context, &get_options );
krb5_verify_init_creds_opt_init( &verify_options );
ret = krb5_get_init_creds_password( context,
&creds, client, cred->bv_val, NULL,
- NULL, 0, NULL, &get_options );
+ NULL, 0, NULL, get_options );
if (ret) {
krb5_free_principal( context, client );