On 5/30/2011 6:51 PM, Charles Wilson wrote:
> Next question, was it deliberate, or is it a bug...time to troll the
> ChangeLog and openssl mailing list...
> However, it seems we must keep this workaround regardless, because we
> need to accommodate 1.0.0 even if it IS a bug and is (eventually) fixed
> in 1.0.0a/b/c/? upstream.
Sure looks deliberate to me (openssl doesn't have much in the way of a
detailed changelog, so this is a diff between 0.9.8n and 1.0.0).
'title' used to be a pass-in argument to this function...
if(binout) BIO_write(out, buf, len);
+ else if (sep == 2)
+ for (i=0; i<(int)len; i++)
+ BIO_printf(out, "%02x",buf[i]);
+ BIO_printf(out, " *%s\n", file);
+ if (sig_name)
+ BIO_printf(out, "%s-%s(%s)= ", sig_name,
+ else if (md_name)
+ BIO_printf(out, "%s(%s)= ", md_name, file);
+ BIO_printf(out, "(%s)= ", file);
for (i=0; i<(int)len; i++)
if (sep && (i != 0))
int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout,
EVP_PKEY *key, unsigned char *sigin, int siglen,
const char *sig_name, const char *md_name,
const char *file,BIO *bmd);
is called as:
if (argc == 0)
err=do_fp(out, buf,inp,separator, out_bin, sigkey, sigbuf,
in this case.