@@ -470,6 +470,30 @@ public enum TLS_VERSION {
470470 public static int NID_ext_key_usage ;
471471 /** Domain name qualifier NID */
472472 public static int NID_dnQualifier ;
473+ /** Subject Key Identifier NID */
474+ public static int NID_subject_key_identifier ;
475+ /** Authority Key Identifier NID */
476+ public static int NID_authority_key_identifier ;
477+ /** CRL Distribution Points NID */
478+ public static int NID_crl_distribution_points ;
479+ /** Netscape Certificate Type NID */
480+ public static int NID_netscape_cert_type ;
481+
482+ /* Netscape Certificate Type bit flags */
483+ /** Netscape Cert Type: SSL Client */
484+ public static final int NS_CERT_TYPE_SSL_CLIENT = 0x80 ;
485+ /** Netscape Cert Type: SSL Server */
486+ public static final int NS_CERT_TYPE_SSL_SERVER = 0x40 ;
487+ /** Netscape Cert Type: S/MIME */
488+ public static final int NS_CERT_TYPE_EMAIL = 0x20 ;
489+ /** Netscape Cert Type: Object Signing */
490+ public static final int NS_CERT_TYPE_OBJECT_SIGNING = 0x10 ;
491+ /** Netscape Cert Type: SSL CA */
492+ public static final int NS_CERT_TYPE_SSL_CA = 0x04 ;
493+ /** Netscape Cert Type: S/MIME CA */
494+ public static final int NS_CERT_TYPE_EMAIL_CA = 0x02 ;
495+ /** Netscape Cert Type: Object Signing CA */
496+ public static final int NS_CERT_TYPE_OBJECT_CA = 0x01 ;
473497
474498 /* is this object active, or has it been cleaned up? */
475499 private boolean active = false ;
@@ -605,6 +629,10 @@ public WolfSSL() throws WolfSSLException {
605629 NID_basic_constraints = getNID_basic_constraints ();
606630 NID_ext_key_usage = getNID_ext_key_usage ();
607631 NID_dnQualifier = getNID_dnQualifier ();
632+ NID_subject_key_identifier = getNID_subject_key_identifier ();
633+ NID_authority_key_identifier = getNID_authority_key_identifier ();
634+ NID_crl_distribution_points = getNID_crl_distribution_points ();
635+ NID_netscape_cert_type = getNID_netscape_cert_type ();
608636
609637 /* initialize cipher enum values */
610638 wolfssl_aes = getBulkCipherAlgorithmEnumAES ();
@@ -674,6 +702,10 @@ public WolfSSL() throws WolfSSLException {
674702 static native int getNID_basic_constraints ();
675703 static native int getNID_ext_key_usage ();
676704 static native int getNID_dnQualifier ();
705+ static native int getNID_subject_key_identifier ();
706+ static native int getNID_authority_key_identifier ();
707+ static native int getNID_crl_distribution_points ();
708+ static native int getNID_netscape_cert_type ();
677709
678710 static native int getBulkCipherAlgorithmEnumNULL ();
679711 static native int getBulkCipherAlgorithmEnumRC4 ();
0 commit comments