subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1636388 - in /subversion/branches/svn-auth-x509/subversion/libsvn_subr: x509.h x509info.c
Date Mon, 03 Nov 2014 16:49:46 GMT
Author: philip
Date: Mon Nov  3 16:49:46 2014
New Revision: 1636388

URL: http://svn.apache.org/r1636388
Log:
On svn-auth-x509 branch: followup to r1636386.

* subversion/libsvn_subr/x509.h
  (struct asn1_oid): Move to ...

* subversion/libsvn_subr/x509info.c
  (struct asn1_oid): ... here.
  (asn1_oids): Make array const.

Modified:
    subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509.h
    subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509info.c

Modified: subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509.h
URL: http://svn.apache.org/viewvc/subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509.h?rev=1636388&r1=1636387&r2=1636388&view=diff
==============================================================================
--- subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509.h (original)
+++ subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509.h Mon Nov  3 16:49:46 2014
@@ -66,12 +66,6 @@
 /*
  * various object identifiers
  */
-typedef struct asn1_oid {
-  const char *oid_string;
-  const char *short_label;
-  const char *long_label;
-} asn1_oid;
-
 #define OID_SUBJECT_ALT_NAME    "\x55\x1D\x11"
 
 #ifdef __cplusplus

Modified: subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509info.c
URL: http://svn.apache.org/viewvc/subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509info.c?rev=1636388&r1=1636387&r2=1636388&view=diff
==============================================================================
--- subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509info.c (original)
+++ subversion/branches/svn-auth-x509/subversion/libsvn_subr/x509info.c Mon Nov  3 16:49:46
2014
@@ -102,7 +102,13 @@ svn_x509_certinfo_dup(const svn_x509_cer
   return result;
 }
 
-static asn1_oid asn1_oids[] = {
+typedef struct asn1_oid {
+  const char *oid_string;
+  const char *short_label;
+  const char *long_label;
+} asn1_oid;
+
+static const asn1_oid asn1_oids[] = {
   { SVN_X509_OID_COMMON_NAME,  "CN", "commonName" },
   { SVN_X509_OID_COUNTRY,      "C",  "countryName" },
   { SVN_X509_OID_LOCALITY,     "L",  "localityName" },



Mime
View raw message