summaryrefslogtreecommitdiff
path: root/modify-the-utils-interface.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-12 09:32:47 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-12 09:32:47 +0000
commit033ecdffa73d5c7b8e19f846833e4195a59b4217 (patch)
tree4d78085bf14f795dd17fb4d07460b5bf4f4b9b42 /modify-the-utils-interface.patch
parentb1a92ad4c76a647f1a5690a2576c4ee791dc90e1 (diff)
automatic import of freeipaopeneuler20.03
Diffstat (limited to 'modify-the-utils-interface.patch')
-rw-r--r--modify-the-utils-interface.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/modify-the-utils-interface.patch b/modify-the-utils-interface.patch
new file mode 100644
index 0000000..a1e8430
--- /dev/null
+++ b/modify-the-utils-interface.patch
@@ -0,0 +1,34 @@
+From 0705d401e503f7620d02affe49ce9a85cb0d6b5b Mon Sep 17 00:00:00 2001
+From: jxy_git <jiangxinyu@kylinos.cn>
+Date: Tue, 7 Mar 2023 17:50:41 +0800
+Subject: [PATCH] modify the utils interface
+
+---
+ ipalib/x509.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ipalib/x509.py b/ipalib/x509.py
+index 402e0e9..2d9b328 100644
+--- a/ipalib/x509.py
++++ b/ipalib/x509.py
+@@ -41,7 +41,7 @@ import base64
+ import re
+
+ from cryptography import x509 as crypto_x509
+-from cryptography import utils as crypto_utils
++# from cryptography import utils as crypto_utils
+ from cryptography.hazmat.backends import default_backend
+ from cryptography.hazmat.primitives import serialization
+ from cryptography.hazmat.primitives.serialization import (
+@@ -88,7 +88,7 @@ SAN_UPN = '1.3.6.1.4.1.311.20.2.3'
+ SAN_KRB5PRINCIPALNAME = '1.3.6.1.5.2.2'
+
+
+-@crypto_utils.register_interface(crypto_x509.Certificate)
++# @crypto_utils.register_interface(crypto_x509.Certificate)
+ class IPACertificate:
+ """
+ A proxy class wrapping a python-cryptography certificate representation for
+--
+2.39.1
+