jsrsasign
jsrsasign copied to clipboard
Support any attribute OID in DName
This patch allows one to add any OID name-value pair in a DName structure.
@lionello What is the issue with the current implementation of OID in DName?
@Ruffio The old implementation would throw an exception when an 'unknown' OID was encountered in the DName, 'unknown' meaning an OID that wasn't explicitly hardcoded in jsrsasign. With this patch, unknown OIDs are not converted to strings and simply output as numbers.
@lionello Are you missing specific OIDs? Which? I see your point, but I don't know if @kjur wants to open up for this. @kjur ?
It's impossible to add "all" OIDs, since new ones can be created at any time. The library should provide a way to obtain unknown OIDs (these are not invalid, so an exception seems misplaced.)
@lionello I see and agree with you. @kjur What do you say?