diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2008-10-06 20:25:45 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2008-10-06 20:25:45 +0000 |
| commit | a7735754e826b831e8249cfb31718699d164ceed (patch) | |
| tree | 35e56827db4f44c3c55c72871bef75b2c2b70ed5 /src/include/k5-int.h | |
| parent | 3fa2e4f2a79729357db7b3d91229b8da4dd4ac4f (diff) | |
| download | krb5-a7735754e826b831e8249cfb31718699d164ceed.tar.gz krb5-a7735754e826b831e8249cfb31718699d164ceed.tar.xz krb5-a7735754e826b831e8249cfb31718699d164ceed.zip | |
Change LDAP key-sequence encoder to use a single data structure
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20829 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/k5-int.h')
| -rw-r--r-- | src/include/k5-int.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 111b12159..f05adecf3 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -1595,17 +1595,21 @@ krb5_error_code decode_krb5_sam_key (const krb5_data *, krb5_sam_key **); struct _krb5_key_data; /* kdb.h */ + +struct ldap_seqof_key_data { + krb5_int32 mkvno; /* Master key version number */ + struct _krb5_key_data *key_data; + krb5_int16 n_key_data; +}; +typedef struct ldap_seqof_key_data ldap_seqof_key_data; + krb5_error_code -krb5int_ldap_encode_sequence_of_keys (struct _krb5_key_data *key_data, - krb5_int16 n_key_data, - krb5_int32 mkvno, +krb5int_ldap_encode_sequence_of_keys (ldap_seqof_key_data *val, krb5_data **code); krb5_error_code krb5int_ldap_decode_sequence_of_keys (krb5_data *in, - struct _krb5_key_data **out, - krb5_int16 *n_key_data, - int *mkvno); + ldap_seqof_key_data **rep); /************************************************************************* * End of prototypes for krb5_decode.c @@ -1864,16 +1868,12 @@ typedef struct _krb5int_access { /* Used for KDB LDAP back end. */ krb5_error_code - (*asn1_ldap_encode_sequence_of_keys) (struct _krb5_key_data *key_data, - krb5_int16 n_key_data, - krb5_int32 mkvno, + (*asn1_ldap_encode_sequence_of_keys) (ldap_seqof_key_data *val, krb5_data **code); krb5_error_code (*asn1_ldap_decode_sequence_of_keys) (krb5_data *in, - struct _krb5_key_data **out, - krb5_int16 *n_key_data, - int *mkvno); + ldap_seqof_key_data **); /* * pkinit asn.1 encode/decode functions |
