You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2014/03/03 21:11:16 UTC
svn commit: r1573728 - /subversion/trunk/subversion/libsvn_ra_serf/util.c
Author: stsp
Date: Mon Mar 3 20:11:15 2014
New Revision: 1573728
URL: http://svn.apache.org/r1573728
Log:
* subversion/libsvn_ra_serf/util.c
(convert_organisation_to_str): Include the issuer's common name in the
result string, if present.
--This line, and those below, worg_unitill be ignored--
M subversion/libsvn_ra_serf/util.c
Modified:
subversion/trunk/subversion/libsvn_ra_serf/util.c
Modified: subversion/trunk/subversion/libsvn_ra_serf/util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/util.c?rev=1573728&r1=1573727&r2=1573728&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/util.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/util.c Mon Mar 3 20:11:15 2014
@@ -131,6 +131,7 @@ construct_realm(svn_ra_serf__session_t *
static char *
convert_organisation_to_str(apr_hash_t *org, apr_pool_t *pool)
{
+ const char *cn = svn_hash_gets(org, "CN");
const char *org_unit = svn_hash_gets(org, "OU");
const char *org_name = svn_hash_gets(org, "O");
const char *locality = svn_hash_gets(org, "L");
@@ -139,6 +140,12 @@ convert_organisation_to_str(apr_hash_t *
const char *email = svn_hash_gets(org, "E");
svn_stringbuf_t *buf = svn_stringbuf_create_empty(pool);
+ if (cn)
+ {
+ svn_stringbuf_appendcstr(buf, cn);
+ svn_stringbuf_appendcstr(buf, ", ");
+ }
+
if (org_unit)
{
svn_stringbuf_appendcstr(buf, org_unit);