Rewrite TBSCertificate, using the new OpenSSL-1.0.2 API

The API around CT changed in 1.0.2-dev. Now that 1.0.2-beta3 is out, this should be stable and good to go.
On 26 September 2014 15:15, Al Cutter <notifications@github.com> wrote:

> In cpp/log/cert.cc:
>
> >      LOG(ERROR) << "Cert not loaded";
> >      return ERROR;
> >    }
> >
> >    unsigned char *der_buf = NULL;
> > -  // There appears to be no "clean" way for getting the TBS out.
> > -  int der_length = i2d_X509_CINF(X509_get_cert_info(x509_), &der_buf);
> > +  int der_length = i2d_re_X509_tbs(x509_, &der_buf);
>
> Could these local temp vars could be const (der_length here & elsewhere,
> index, etc.) ?
>

Too late. I already merged.

But feel free to constify! Always a good idea.