diff options
author | lloyd <[email protected]> | 2006-08-23 01:30:37 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-08-23 01:30:37 +0000 |
commit | b65a787a542402d22243dbab4fe137e56c9837e6 (patch) | |
tree | 927d381f944da25086bfda1fb0fbcc7d24617336 /src/x509_ext.cpp | |
parent | ec4a05caec0327b1941f5854b8e9b515e607d0de (diff) |
Fix a bug that caused subject alternative name information to be saved
as issuer names.
Diffstat (limited to 'src/x509_ext.cpp')
-rw-r--r-- | src/x509_ext.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/x509_ext.cpp b/src/x509_ext.cpp index f979f55ee..348c4de1a 100644 --- a/src/x509_ext.cpp +++ b/src/x509_ext.cpp @@ -337,10 +337,13 @@ void Alternative_Name::contents_to(Data_Store& subject_info, std::multimap<std::string, std::string> contents = get_alt_name().contents(); - if(oid_name_str == "subject_alternative_name") + if(oid_name_str == "X509v3.SubjectAlternativeName") subject_info.add(contents); - else + else if(oid_name_str == "X509v3.IssuerAlternativeName") issuer_info.add(contents); + else + throw Internal_Error("In Alternative_Name, unknown type " + + oid_name_str); } /************************************************* |