returns system errors, encryption errors
*/
krb5_error_code
-krb5_get_in_tkt_with_password(DECLARG(krb5_flags, options),
- DECLARG(krb5_address **, addrs),
- DECLARG(krb5_enctype, etype),
- DECLARG(krb5_keytype, keytype),
- DECLARG(char *, password),
+krb5_get_in_tkt_with_password(DECLARG(const krb5_flags, options),
+ DECLARG(const krb5_address **, addrs),
+ DECLARG(const krb5_enctype, etype),
+ DECLARG(const krb5_keytype, keytype),
+ DECLARG(const char *, password),
DECLARG(krb5_ccache, ccache),
DECLARG(krb5_creds *, creds))
-OLDDECLARG(krb5_flags, options)
-OLDDECLARG(krb5_address **, addrs)
-OLDDECLARG(krb5_enctype, etype)
-OLDDECLARG(krb5_keytype, keytype)
-OLDDECLARG(char *, password)
+OLDDECLARG(const krb5_flags, options)
+OLDDECLARG(const krb5_address **, addrs)
+OLDDECLARG(const krb5_enctype, etype)
+OLDDECLARG(const krb5_keytype, keytype)
+OLDDECLARG(const char *, password)
OLDDECLARG(krb5_ccache, ccache)
OLDDECLARG(krb5_creds *, creds)
{
struct pwd_keyproc_arg keyseed;
- keyseed.password.data = password;
+ keyseed.password.data = (char *)password;
keyseed.password.length = strlen(password);
keyseed.who = creds->client;
*/
krb5_error_code
-krb5_get_in_tkt_with_skey(DECLARG(krb5_flags, options),
- DECLARG(krb5_address **, addrs),
- DECLARG(krb5_enctype, etype),
- DECLARG(krb5_keyblock *,key),
+krb5_get_in_tkt_with_skey(DECLARG(const krb5_flags, options),
+ DECLARG(const krb5_address **, addrs),
+ DECLARG(const krb5_enctype, etype),
+ DECLARG(const krb5_keyblock *,key),
DECLARG(krb5_ccache, ccache),
DECLARG(krb5_creds *,creds))
-OLDDECLARG(krb5_flags, options)
-OLDDECLARG(krb5_address **, addrs)
-OLDDECLARG(krb5_enctype, etype)
-OLDDECLARG(krb5_keyblock *,key)
+OLDDECLARG(const krb5_flags, options)
+OLDDECLARG(const krb5_address **, addrs)
+OLDDECLARG(const krb5_enctype, etype)
+OLDDECLARG(const krb5_keyblock *,key)
OLDDECLARG(krb5_ccache, ccache)
OLDDECLARG(krb5_creds *, creds)
{
krb5_keytype keytype;
if (key) {
- arg.key = key;
+ arg.key = (krb5_keyblock *)key;
arg.server = 0;
keytype = key->keytype;
} else {
}
return (krb5_get_in_tkt(options, addrs, etype, keytype, skey_keyproc,
(krb5_pointer) &arg,
- krb5_kdc_rep_decrypt_proc, 0,
- creds, ccache));
+ krb5_kdc_rep_decrypt_proc,
+ 0,
+ creds,
+ ccache));
}