18324 pkg needs to not traceback if m2crypto can't understand an x509 extension
authorBrock Pytlik <brock.pytlik@oracle.com>
Wed, 25 May 2011 13:59:43 -0700
changeset 2378 b8e3f6867b6c
parent 2377 8e97dd53f9e4
child 2379 292ebc6e9010
18324 pkg needs to not traceback if m2crypto can't understand an x509 extension
src/modules/client/publisher.py
--- a/src/modules/client/publisher.py	Wed May 25 14:33:07 2011 +0100
+++ b/src/modules/client/publisher.py	Wed May 25 13:59:43 2011 -0700
@@ -2363,6 +2363,8 @@
                 for i in range(0, cert.get_ext_count()):
                         ext = cert.get_ext_at(i)
                         name = ext.get_name()
+                        if name == "UNDEF":
+                                continue
                         v = ext.get_value().upper()
                         # Check whether the extension name is recognized.
                         if name in SUPPORTED_EXTENSION_VALUES: