krb5_encrypt_helper instead. (encrypt_helper takes a key usage
instead of an ivec, but that's okay since the invocations were using
null ivecs anyway.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23111
dc483132-0cff-0310-8789-
dd5450dbe970
&scratch)) != 0)
goto cleanup;
- if ((retval = krb5_encrypt_data(context,
- sam_use_key?sam_use_key:def_enc_key,
- 0, scratch,
- &sam_response.sam_enc_nonce_or_ts)))
+ if ((retval = krb5_encrypt_helper(context,
+ sam_use_key?sam_use_key:def_enc_key,
+ 0, scratch,
+ &sam_response.sam_enc_nonce_or_ts)))
goto cleanup;
krb5_free_data(context, scratch);
&scratch)))
return(ret);
- ret = krb5_encrypt_data(context, as_key, 0, scratch,
- &sam_response.sam_enc_nonce_or_ts);
+ ret = krb5_encrypt_helper(context, as_key, 0, scratch,
+ &sam_response.sam_enc_nonce_or_ts);
krb5_free_data(context, scratch);