asn1: ber_write_OID_String() to be more picky about supplied OID
commit6b63ad6ff1bfcb7fcfb3e0f3cd4636ff222ab88f
authorKamen Mazdrashki <kamenim@samba.org>
Wed, 20 Oct 2010 10:45:59 +0000 (20 13:45 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Thu, 21 Oct 2010 22:48:58 +0000 (22 01:48 +0300)
tree3c6b59829ae4814795d1ac2ec14159b4755ca909
parentc74ef7acf49f5e447373643c2e28c1dad56f451d
asn1: ber_write_OID_String() to be more picky about supplied OID

Now function will check for invalid OID handling cases where:
 - sub-identifier has invalid characters (non-digit)
 - 'dot' separator found on unexpected place. For instance
    '.' at start or end of the OID. Two '.' in a row.
lib/util/asn1.c