libcrypto refactoring: make more use of ASN1_STRING_set0()