svn rev #25216: trunk/src/lib/krb5/asn.1/

ghudson@MIT.EDU ghudson at MIT.EDU
Wed Sep 21 13:46:28 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25216
Commit By: ghudson
Log Message:
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.


Changed Files:
U   trunk/src/lib/krb5/asn.1/asn1_k_encode.c
Modified: trunk/src/lib/krb5/asn.1/asn1_k_encode.c
===================================================================
--- trunk/src/lib/krb5/asn.1/asn1_k_encode.c	2011-09-21 16:29:00 UTC (rev 25215)
+++ trunk/src/lib/krb5/asn.1/asn1_k_encode.c	2011-09-21 17:46:27 UTC (rev 25216)
@@ -2107,8 +2107,26 @@
     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,
                                    unsigned int *retlen)




More information about the cvs-krb5 mailing list