summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/cert.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2013-10-16 07:40:23 +0000
committerPetr Viktorin <pviktori@redhat.com>2014-03-25 16:54:55 +0100
commitd8484d1dd6570570bffdb6162bc40348fa5d4b8c (patch)
tree46fffaf128153dd166646bd166637c5c896421ad /ipalib/plugins/cert.py
parentd5e35f92a55d4e80d13ce157a8aa8f36276ad327 (diff)
downloadfreeipa-d8484d1dd6570570bffdb6162bc40348fa5d4b8c.tar.gz
freeipa-d8484d1dd6570570bffdb6162bc40348fa5d4b8c.tar.xz
freeipa-d8484d1dd6570570bffdb6162bc40348fa5d4b8c.zip
Remove unused function get_subjectaltname from the cert plugin.
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipalib/plugins/cert.py')
-rw-r--r--ipalib/plugins/cert.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/ipalib/plugins/cert.py b/ipalib/plugins/cert.py
index 90d450504..27686e7c9 100644
--- a/ipalib/plugins/cert.py
+++ b/ipalib/plugins/cert.py
@@ -144,20 +144,6 @@ def get_csr_hostname(csr):
raise errors.CertificateOperationError(
error=_('Failure decoding Certificate Signing Request: %s') % nsprerr)
-def get_subjectaltname(csr):
- """
- Return the first value of the subject alt name, if any
- """
- try:
- request = pkcs10.load_certificate_request(csr)
- for extension in request.extensions:
- if extension.oid_tag == nss.SEC_OID_X509_SUBJECT_ALT_NAME:
- return nss.x509_alt_name(extension.value)[0]
- return None
- except NSPRError, nsprerr:
- raise errors.CertificateOperationError(
- error=_('Failure decoding Certificate Signing Request: %s') % nsprerr)
-
def validate_csr(ugettext, csr):
"""
Ensure the CSR is base64-encoded and can be decoded by our PKCS#10