Enable sam_challenge_2 encoders
authorSam Hartman <hartmans@mit.edu>
Fri, 1 Oct 2010 17:12:30 +0000 (17:12 +0000)
committerSam Hartman <hartmans@mit.edu>
Fri, 1 Oct 2010 17:12:30 +0000 (17:12 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24404 dc483132-0cff-0310-8789-dd5450dbe970

src/include/k5-int.h
src/lib/krb5/asn.1/asn1_k_encode.c
src/lib/krb5/libkrb5.exports

index f2a037c2304fab973f8f61bb586a441b906f0848..cf14a62275171d20413126bdbbb23f7022be08df 100644 (file)
@@ -1813,14 +1813,12 @@ encode_krb5_enc_sam_response_enc(const krb5_enc_sam_response_enc *,
 krb5_error_code
 encode_krb5_sam_response(const krb5_sam_response *, krb5_data **);
 
-#if 0 /* currently not compiled because we never use them */
 krb5_error_code
 encode_krb5_sam_challenge_2(const krb5_sam_challenge_2 * , krb5_data **);
 
 krb5_error_code
 encode_krb5_sam_challenge_2_body(const krb5_sam_challenge_2_body *,
                                  krb5_data **);
-#endif
 
 krb5_error_code
 encode_krb5_enc_sam_response_enc_2(const krb5_enc_sam_response_enc_2 *,
index d334ae632b663868c9f03d6de79a68666d09ed27..ae88c58800015a6bbfcef058ec9a2b3d086d68a8 100644 (file)
@@ -532,7 +532,6 @@ optional_sam_challenge(const void *p)
 DEFSEQTYPE(sam_challenge,krb5_sam_challenge,sam_challenge_fields,
            optional_sam_challenge);
 
-#if 0 /* encoders not used! */
 MAKE_ENCFN(asn1_encode_sequence_of_checksum, seq_of_checksum);
 static asn1_error_code
 asn1_encode_sam_challenge_2(asn1buf *buf, const krb5_sam_challenge_2 *val,
@@ -595,7 +594,7 @@ optional_sam_challenge_2_body(const void *p)
 }
 DEFSEQTYPE(sam_challenge_2_body,krb5_sam_challenge_2_body,sam_challenge_2_body_fields,
            optional_sam_challenge_2_body);
-#endif
+
 
 static const struct field_info sam_key_fields[] = {
     FIELDOF_NORM(krb5_sam_key, encryption_key, sam_key, 0),
@@ -1471,11 +1470,9 @@ MAKE_FULL_ENCODER(encode_krb5_pwd_data, pwd_data);
 MAKE_FULL_ENCODER(encode_krb5_padata_sequence, seq_of_pa_data);
 /* sam preauth additions */
 MAKE_FULL_ENCODER(encode_krb5_sam_challenge, sam_challenge);
-#if 0 /* encoders not used! */
 MAKE_FULL_ENCODER(encode_krb5_sam_challenge_2, sam_challenge_2);
 MAKE_FULL_ENCODER(encode_krb5_sam_challenge_2_body,
                   sam_challenge_2_body);
-#endif
 MAKE_FULL_ENCODER(encode_krb5_sam_key, sam_key);
 MAKE_FULL_ENCODER(encode_krb5_enc_sam_response_enc,
                   enc_sam_response_enc);
index 81e18d0c6ac8b47d07f6480b22ff7a6b799ec82a..92e00fd217fb0daa2d830926b3e0b647376ae67c 100644 (file)
@@ -86,6 +86,8 @@ encode_krb5_pwd_sequence
 encode_krb5_s4u_userid
 encode_krb5_safe
 encode_krb5_sam_challenge
+encode_krb5_sam_challenge_2
+encode_krb5_sam_challenge_2_body
 encode_krb5_sam_key
 encode_krb5_sam_response
 encode_krb5_sam_response_2