When parsing possibly-PKCS#7, handle length==1
When parsing PKCS#7 or X.509 data which might be binary or text, accept
a length of -1 as implicitly meaning the strlen() of a passed-in buffer,
to make things easier for callers who know they're passing us text.