[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: QC certificates and Nationality



> 
> >But we are living in a world leaning toward XML, where non-validated
> >character fields reign :-).  How many implementations today actually
> >contain a table of 3166 digraphs, and how many just accept any two
> >PrintableString characters for the CountryName attribute?

And how many implementation treat  US, us, Us, uS in the same way :-)
> 
> In case anyone else needs this:
> 
> /* Check that a country code is valid */
> 

With Peter's example you cannot validate a document that was signed
in 1990 somewhere in Germany. There was a country code DD. 

I just remember that in 1991 I had to setup a rather strange 
mapping table for an X.400 gateway with one (and almost identical) 
mapping rule for each country. I simply ended up with 26*26 
rules. :-)

Why and where do you actually want to verify a country code?
Well, only if you say, all, except for the following n:
(arbitrary list of your favorites to be included here, WW, NN for example)