3b13d8
From 9c1f9f35baa5a88f739e96fd0f053224b43591af Mon Sep 17 00:00:00 2001
3b13d8
From: Marco Fargetta <mfargett@redhat.com>
3b13d8
Date: Wed, 24 May 2023 13:25:29 +0200
3b13d8
Subject: [PATCH 8/8] Bug2209624_Fix SIA extension
3b13d8
3b13d8
The "Subject Info Access" extension was not included in the oid
3b13d8
extension  map so it was not correctly printed.
3b13d8
3b13d8
This add SIA extension to the oid map.
3b13d8
---
3b13d8
 org/mozilla/jss/netscape/security/x509/OIDMap.java | 6 ++++++
3b13d8
 1 file changed, 6 insertions(+)
3b13d8
3b13d8
diff --git a/org/mozilla/jss/netscape/security/x509/OIDMap.java b/org/mozilla/jss/netscape/security/x509/OIDMap.java
3b13d8
index d664f42..eac8b5c 100644
3b13d8
--- a/org/mozilla/jss/netscape/security/x509/OIDMap.java
3b13d8
+++ b/org/mozilla/jss/netscape/security/x509/OIDMap.java
3b13d8
@@ -26,6 +26,7 @@ import java.util.Iterator;
3b13d8
 import java.util.Properties;
3b13d8
 
3b13d8
 import org.mozilla.jss.netscape.security.extensions.AuthInfoAccessExtension;
3b13d8
+import org.mozilla.jss.netscape.security.extensions.SubjectInfoAccessExtension;
3b13d8
 import org.mozilla.jss.netscape.security.util.ObjectIdentifier;
3b13d8
 
3b13d8
 /**
3b13d8
@@ -64,6 +65,8 @@ public class OIDMap {
3b13d8
                                           SubjectKeyIdentifierExtension.NAME;
3b13d8
     private static final String AUTHORITY_INFORMATION_ACCESS_IDENTIFIER = ROOT + "." +
3b13d8
                                           AuthInfoAccessExtension.NAME;
3b13d8
+    private static final String SUBJECT_INFORMATION_ACCESS_IDENTIFIER = ROOT + "." +
3b13d8
+                                          SubjectInfoAccessExtension.NAME;
3b13d8
     private static final String KEY_USAGE = ROOT + "." +
3b13d8
                                           KeyUsageExtension.NAME;
3b13d8
     private static final String PRIVATE_KEY_USAGE = ROOT + "." +
3b13d8
@@ -110,6 +113,7 @@ public class OIDMap {
3b13d8
     private static void loadNamesDefault(Properties props) {
3b13d8
         props.put(SUB_KEY_IDENTIFIER, "2.5.29.14");
3b13d8
         props.put(AUTHORITY_INFORMATION_ACCESS_IDENTIFIER, "1.3.6.1.5.5.7.1.1");
3b13d8
+        props.put(SUBJECT_INFORMATION_ACCESS_IDENTIFIER, "1.3.6.1.5.5.7.1.11");
3b13d8
         props.put(KEY_USAGE, "2.5.29.15");
3b13d8
         props.put(PRIVATE_KEY_USAGE, "2.5.29.16");
3b13d8
         props.put(SUB_ALT_NAME, "2.5.29.17");
3b13d8
@@ -134,6 +138,8 @@ public class OIDMap {
3b13d8
                   "org.mozilla.jss.netscape.security.x509.SubjectKeyIdentifierExtension");
3b13d8
         props.put(AUTHORITY_INFORMATION_ACCESS_IDENTIFIER,
3b13d8
                  "org.mozilla.jss.netscape.security.extensions.AuthInfoAccessExtension");
3b13d8
+        props.put(SUBJECT_INFORMATION_ACCESS_IDENTIFIER,
3b13d8
+                "org.mozilla.jss.netscape.security.extensions.SubjectInfoAccessExtension");
3b13d8
         props.put(KEY_USAGE,
3b13d8
                   "org.mozilla.jss.netscape.security.x509.KeyUsageExtension");
3b13d8
         props.put(PRIVATE_KEY_USAGE,
3b13d8
-- 
3b13d8
1.8.3.1
3b13d8