Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 644196 Details for
Bug 868986
rightid= can be ignored when a peer certificate name field contains a comma
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to allow ",," sequence in leftid= to escape a comma
openswan-new-rplus.patch (text/plain), 1.46 KB, created by
Matt Rogers
on 2012-11-13 16:11:54 UTC
(
hide
)
Description:
patch to allow ",," sequence in leftid= to escape a comma
Filename:
MIME Type:
Creator:
Matt Rogers
Created:
2012-11-13 16:11:54 UTC
Size:
1.46 KB
patch
obsolete
>--- openswan-2.6.32/lib/libopenswan/x509dn.c.orig 2012-11-06 16:54:34.538794072 -0500 >+++ openswan-2.6.32/lib/libopenswan/x509dn.c 2012-11-13 10:39:07.086725554 -0500 >@@ -730,6 +730,39 @@ dntoa_or_null(char *dst, size_t dstlen, > return dntoa(dst, dstlen, dn); > } > >+/* >+ * function for use in atodn() that removes a single comma >+ * when encountering ",," in the leftid/rightid string. It >+ * will do this only once for the first ",," found. >+ */ >+ >+void >+remove_comma(char *str) >+{ >+ char comma = ','; >+ char *src, *dst; >+ int once = 0; >+ >+ src = dst = str; >+ while (*src != '\0' && once == 0) >+ { >+ *dst = *src; >+ src++; >+ if (*dst++ == comma && *src == comma) >+ { >+ src++; >+ once = 1; >+ } >+ } >+ while (*src != '\0') >+ { >+ *dst = *src; >+ src++; >+ dst++; >+ } >+ *dst = '\0'; >+} >+ > /* Converts an LDAP-style human-readable ASCII-encoded > * ASN.1 distinguished name into binary DER-encoded format > */ >@@ -828,6 +861,18 @@ atodn(char *src, chunk_t *dn) > } > else > { >+ if (*src == ',') >+ { >+ if (*++src == ',') >+ { >+ src--; >+ name.len++; >+ remove_comma(src); >+ break; >+ } >+ else >+ src--; >+ } > name.len -= whitespace; > code_asn1_length(name.len, &asn1_name_len); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 868986
:
631630
| 644196