svn rev #23405: branches/fast-negotiate/src/ include/ lib/krb5/asn.1/
hartmans@MIT.EDU
hartmans at MIT.EDU
Wed Dec 2 11:15:55 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=23405
Commit By: hartmans
Log Message:
Expose {decode,encode}_krb5_checksum
Changed Files:
U branches/fast-negotiate/src/include/k5-int.h
U branches/fast-negotiate/src/lib/krb5/asn.1/asn1_k_decode.c
U branches/fast-negotiate/src/lib/krb5/asn.1/asn1_k_encode.c
U branches/fast-negotiate/src/lib/krb5/asn.1/krb5_decode.c
Modified: branches/fast-negotiate/src/include/k5-int.h
===================================================================
--- branches/fast-negotiate/src/include/k5-int.h 2009-12-02 16:15:52 UTC (rev 23404)
+++ branches/fast-negotiate/src/include/k5-int.h 2009-12-02 16:15:55 UTC (rev 23405)
@@ -1679,6 +1679,8 @@
krb5_error_code
encode_krb5_cred(const krb5_cred *rep, krb5_data **code);
+krb5_error_code
+encode_krb5_checksum(const krb5_checksum *, krb5_data **);
krb5_error_code
encode_krb5_enc_cred_part(const krb5_cred_enc_part *rep, krb5_data **code);
@@ -1907,6 +1909,8 @@
krb5_error_code
decode_krb5_enc_priv_part(const krb5_data *output, krb5_priv_enc_part **rep);
+krb5_error_code
+decode_krb5_checksum(const krb5_data *, krb5_checksum **);
krb5_error_code
decode_krb5_cred(const krb5_data *output, krb5_cred **rep);
Modified: branches/fast-negotiate/src/lib/krb5/asn.1/asn1_k_decode.c
===================================================================
--- branches/fast-negotiate/src/lib/krb5/asn.1/asn1_k_decode.c 2009-12-02 16:15:52 UTC (rev 23404)
+++ branches/fast-negotiate/src/lib/krb5/asn.1/asn1_k_decode.c 2009-12-02 16:15:55 UTC (rev 23405)
@@ -658,6 +658,7 @@
val->last_req = NULL;
val->server = NULL;
val->caddrs = NULL;
+ val->enc_padata = NULL;
{ begin_structure();
get_field(val->session,0,asn1_decode_encryption_key_ptr);
get_field(val->last_req,1,asn1_decode_last_req);
Modified: branches/fast-negotiate/src/lib/krb5/asn.1/asn1_k_encode.c
===================================================================
--- branches/fast-negotiate/src/lib/krb5/asn.1/asn1_k_encode.c 2009-12-02 16:15:52 UTC (rev 23404)
+++ branches/fast-negotiate/src/lib/krb5/asn.1/asn1_k_encode.c 2009-12-02 16:15:55 UTC (rev 23405)
@@ -1424,6 +1424,8 @@
MAKE_FULL_ENCODER(encode_krb5_priv, krb5_priv);
MAKE_FULL_ENCODER(encode_krb5_enc_priv_part, priv_enc_part);
+MAKE_FULL_ENCODER(encode_krb5_checksum, checksum);
+
MAKE_FULL_ENCODER(encode_krb5_cred, krb5_cred);
MAKE_FULL_ENCODER(encode_krb5_enc_cred_part, enc_cred_part);
MAKE_FULL_ENCODER(encode_krb5_error, krb5_error);
Modified: branches/fast-negotiate/src/lib/krb5/asn.1/krb5_decode.c
===================================================================
--- branches/fast-negotiate/src/lib/krb5/asn.1/krb5_decode.c 2009-12-02 16:15:52 UTC (rev 23404)
+++ branches/fast-negotiate/src/lib/krb5/asn.1/krb5_decode.c 2009-12-02 16:15:55 UTC (rev 23405)
@@ -702,6 +702,15 @@
return retval;
}
+krb5_error_code decode_krb5_checksum(const krb5_data *code, krb5_checksum **repptr)
+{
+ setup_buf_only(krb5_checksum *);
+ alloc_field(rep);
+ retval = asn1_decode_checksum(&buf, rep);
+ if (retval) clean_return(retval);
+ cleanup(free);
+}
+
krb5_error_code
decode_krb5_cred(const krb5_data *code, krb5_cred **repptr)
{
More information about the cvs-krb5
mailing list