tests/krb5/raw_testcase.py: Allow prettyPrint of more RFC-defined values
authorStefan Metzmacher <metze@samba.org>
Wed, 15 Apr 2020 15:50:00 +0000 (17:50 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 1 Jul 2021 17:46:31 +0000 (17:46 +0000)
By setting krb5_asn1.APOptions.prettyPrint = BitString_NamedValues_prettyPrint
we allow the BitString_NamedValues_prettyPrint() routine to show more named values.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/krb5/raw_testcase.py

index eb294a75a9500ffed10fd8e19b5d0a70219154ad..29745fa40895e40182ef0e45a013ad80b2af3845 100644 (file)
@@ -111,6 +111,12 @@ krb5_asn1.KDCOptions.namedValues =\
     krb5_asn1.KDCOptionsValues.namedValues
 krb5_asn1.KDCOptions.prettyPrint =\
     BitString_NamedValues_prettyPrint
+krb5_asn1.APOptions.prettyPrintNamedValues =\
+    krb5_asn1.APOptionsValues.namedValues
+krb5_asn1.APOptions.namedValues =\
+    krb5_asn1.APOptionsValues.namedValues
+krb5_asn1.APOptions.prettyPrint =\
+    BitString_NamedValues_prettyPrint
 
 
 def Integer_NamedValues_prettyPrint(self, scope=0):