From: Greg Hudson Date: Wed, 21 Sep 2011 17:46:27 +0000 (+0000) Subject: Add stubs for new pkinit encoders X-Git-Tag: krb5-1.10-alpha1~159 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c5c5b3641beb7a41592626c845ae06d75429ecb1;p=krb5.git Add stubs for new pkinit encoders The new pkinit encoders for hash agility are in the library export list (whereas older encoders are invoked via the accessor), so we need to provide stubs for them if we're building without pkinit support. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25216 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/asn1_k_encode.c b/src/lib/krb5/asn.1/asn1_k_encode.c index 54f7a8021..018aae877 100644 --- a/src/lib/krb5/asn.1/asn1_k_encode.c +++ b/src/lib/krb5/asn.1/asn1_k_encode.c @@ -2107,7 +2107,25 @@ asn1_encode_td_trusted_certifiers( asn1_cleanup(); } -#endif /* DISABLE_PKINIT */ +#else /* DISABLE_PKINIT */ + +/* Stubs for exported pkinit encoder functions. */ + +krb5_error_code +encode_krb5_sp80056a_other_info(const krb5_sp80056a_other_info *rep, + krb5_data **code) +{ + return EINVAL; +} + +krb5_error_code +encode_krb5_pkinit_supp_pub_info(const krb5_pkinit_supp_pub_info *rep, + krb5_data **code) +{ + return EINVAL; +} + +#endif /* not DISABLE_PKINIT */ asn1_error_code asn1_encode_sequence_of_typed_data(asn1buf *buf, const krb5_typed_data **val,