[Tickets #5986] Re: Problem importing public keys for S/MIME
bugs at bugs.horde.org
bugs at bugs.horde.org
Thu Dec 13 18:25:10 UTC 2007
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=5986
-----------------------------------------------------------------------
Ticket | 5986
Updated By | holger.richter at klst.com
Summary | Problem importing public keys for S/MIME
Queue | Horde Framework Packages
Version | HEAD
Type | Enhancement
State | Feedback
Priority | 2. Medium
Owners |
-----------------------------------------------------------------------
holger.richter at klst.com (2007-12-13 13:25) wrote:
the patch for smime.php
*** framework/Crypt/Crypt/smime.php-orig Wed Aug 22 11:48:04 2007
--- framework/Crypt/Crypt/smime.php Wed Dec 12 16:00:45 2007
***************
*** 1250,1255 ****
--- 1250,1265 ----
} elseif (isset($key_info['subject']['emailAddress'])) {
return $key_info['subject']['emailAddress'];
}
+ }
+ // Hg: the email address could be moved from the subject to the
+ // subjectAltName field
+ if (is_array($key_info) && isset($key_info['extensions'])) {
+ if (isset($key_info['extensions']['subjectAltName'])) {
+ $val = $key_info['extensions']['subjectAltName'];
+ if (trim(stripos($val, "mail:")) == 1) {
+ return substr($val, 7);
+ }
+ }
}
return null;
More information about the bugs
mailing list