krb5_error_code krb5_encode_kdc_rep
(krb5_context,
- const krb5_msgtype,
+ krb5_msgtype,
const krb5_enc_kdc_rep_part *,
int using_subkey,
const krb5_keyblock *,
#define CRC32_CKSUM_LENGTH 4
void
-mit_crc32 (const krb5_pointer in, size_t in_length, unsigned long *c);
+mit_crc32 (krb5_pointer in, size_t in_length, unsigned long *c);
#ifdef CRC32_SHIFT4
-void mit_crc32_shift4(const krb5_pointer /* in */,
- const size_t /* in_length */,
+void mit_crc32_shift4(krb5_pointer /* in */,
+ size_t /* in_length */,
unsigned long * /* cksum */);
#endif
/* if the princ wasn't filled in already, fill it in now */
- if (!cred->princ && (desired_name != GSS_C_NO_CREDENTIAL))
+ if (!cred->princ && (desired_name != GSS_C_NO_NAME))
if ((code = krb5_copy_principal(context, (krb5_principal) desired_name,
&(cred->princ)))) {
if (cred->ccache)
OM_uint32 gssint_copy_oid_set(
OM_uint32 *, /* minor_status */
- const gss_OID_set_desc *, /* oid set */
+ const gss_OID_set_desc * const, /* oid set */
gss_OID_set * /* new oid set */
);
asn1_error_code asn1_make_etag
(asn1buf *buf,
- const asn1_class asn1class,
- const asn1_tagnum tagnum,
- const unsigned int in_len,
+ asn1_class asn1class,
+ asn1_tagnum tagnum,
+ unsigned int in_len,
unsigned int *retlen);
/* requires *buf is allocated, in_len is the length of an ASN.1 encoding
which has just been inserted in *buf
Returns ENOMEM if memory runs out. */
asn1_error_code asn1_make_tag
- (asn1buf *buf, const asn1_class asn1class,
- const asn1_construction construction,
- const asn1_tagnum tagnum,
- const unsigned int in_len,
+ (asn1buf *buf, asn1_class asn1class,
+ asn1_construction construction,
+ asn1_tagnum tagnum,
+ unsigned int in_len,
unsigned int *retlen);
/* requires *buf is allocated, in_len is the length of an ASN.1 encoding
which has just been inserted in *buf
/* "helper" procedure for asn1_make_tag */
asn1_error_code asn1_make_id
(asn1buf *buf,
- const asn1_class asn1class,
- const asn1_construction construction,
- const asn1_tagnum tagnum,
+ asn1_class asn1class,
+ asn1_construction construction,
+ asn1_tagnum tagnum,
unsigned int *retlen);
/* requires *buf is allocated, asn1class and tagnum are appropriate for
the ASN.1 encoding which has just been inserted in *buf
position starts at the beginning of *subbuf. */
asn1_error_code asn1buf_sync
- (asn1buf *buf, asn1buf *subbuf, const asn1_class Class,
- const asn1_tagnum lasttag,
- const unsigned int length, const int indef,
- const int seqindef);
+ (asn1buf *buf, asn1buf *subbuf, asn1_class Class,
+ asn1_tagnum lasttag,
+ unsigned int length, int indef,
+ int seqindef);
/* requires *subbuf is a sub-buffer of *buf, as created by asn1buf_imbed.
lasttag is the last tagnumber read.
effects Synchronizes *buf's current position to match that of *subbuf. */
/* some typedef's for the function args to make things look a bit cleaner */
typedef krb5_error_code (*git_key_proc) (krb5_context,
- const krb5_enctype,
+ krb5_enctype,
krb5_data *,
krb5_const_pointer,
krb5_keyblock **);
krb5_error_code KRB5_CALLCONV
krb5_get_in_tkt(krb5_context context,
- const krb5_flags options,
+ krb5_flags options,
krb5_address * const * addrs,
krb5_enctype * ktypes,
krb5_preauthtype * ptypes,
* "keyseed" is actually a krb5_keyblock *, or NULL if we should fetch
* from system area.
*/
-static krb5_error_code skey_keyproc
- (krb5_context,
- const krb5_enctype,
- krb5_data *,
- krb5_const_pointer,
- krb5_keyblock **);
-
static krb5_error_code
skey_keyproc(krb5_context context, krb5_enctype type, krb5_data *salt,
krb5_const_pointer keyseed, krb5_keyblock **key)
*/
krb5_error_code KRB5_CALLCONV
-krb5_aname_to_localname(krb5_context context, krb5_const_principal aname, const int lnsize_in, char *lname)
+krb5_aname_to_localname(krb5_context context, krb5_const_principal aname, int lnsize_in, char *lname)
{
krb5_error_code kret;
char *realm;