Re: CERT_AsciiToName() and unknown OIDs

2017-02-23 Thread Miklos Vajna
Hi, On Thu, Feb 23, 2017 at 11:59:28AM -0500, John Dennis wrote: > >>It does appear that ParseRFC1485AVA has a bug > >> > >>if (!PL_strncasecmp("oid.", tagBuf, 4)) { > >>rv = SEC_StringToOID(arena, &derOid, tagBuf, strlen(tagBuf)); > >> > >>SEC_StringToOID() can handle a numericoid (

Re: CERT_AsciiToName() and unknown OIDs

2017-02-23 Thread John Dennis
On 02/23/2017 11:38 AM, Miklos Vajna wrote: Hi, On Thu, Feb 23, 2017 at 10:44:10AM -0500, John Dennis wrote: You should follow the RFC specifications, in this case RFC-4514 and RFC-4512. Thanks for the numbers, I wasn't sure where is this specified. The second example with the RDN 2.5.4.9

Re: CERT_AsciiToName() and unknown OIDs

2017-02-23 Thread Miklos Vajna
Hi, On Thu, Feb 23, 2017 at 10:44:10AM -0500, John Dennis wrote: > You should follow the RFC specifications, in this case RFC-4514 and > RFC-4512. Thanks for the numbers, I wasn't sure where is this specified. > The second example with the RDN 2.5.4.97=VATHU-10585560 is correct. > > It does a

Re: CERT_AsciiToName() and unknown OIDs

2017-02-23 Thread John Dennis
On 02/23/2017 09:00 AM, Miklos Vajna wrote: Hi, [ I ran into this problem as a follow-up of the previous ECDSA question I asked earlier, but I assume this problem is independent. ] I'm trying to use CERT_AsciiToName() to get the DER-encoded equivalent of a string from an XML signature. The orig