Add stubs for new pkinit encoders
authorGreg Hudson <ghudson@mit.edu>
Wed, 21 Sep 2011 17:46:27 +0000 (17:46 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 21 Sep 2011 17:46:27 +0000 (17:46 +0000)
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

src/lib/krb5/asn.1/asn1_k_encode.c

index 54f7a8021d785baee46a884869da3958df5bbe7b..018aae8775951eaaaecd4bd1fe183a28447283d6 100644 (file)
@@ -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,