Content-Type: multipart/mixed; boundary="===============0258464636810739016==" MIME-Version: 1.0 From: James Prestwood Subject: Re: [PATCH] tls: fixed intentation in X509 definitions Date: Mon, 19 Nov 2018 09:01:32 -0800 Message-ID: <1dedfd6163f33a95fd13d0f92e34195f6591884a.camel@linux.intel.com> In-Reply-To: List-Id: To: ell@lists.01.org --===============0258464636810739016== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Fri, 2018-11-16 at 16:09 -0800, Mat Martineau wrote: > Hi James - > = > On Fri, 16 Nov 2018, James Prestwood wrote: > = > > Someones editor must have been misbehaving > = > Looks like the existing indentation is intended to reflect the > nexted = > structure of the certificates. For example, look at the sequence of = > numbers in each column. Ah ok that makes sense. You can disregard this then, it just looked very strange at first paging through the code :) Thanks, James > = > Mat > = > > --- > > ell/tls.c | 34 +++++++++++++++++----------------- > > 1 file changed, 17 insertions(+), 17 deletions(-) > > = > > diff --git a/ell/tls.c b/ell/tls.c > > index 9dc97ff..2d2dd4b 100644 > > --- a/ell/tls.c > > +++ b/ell/tls.c > > @@ -2549,23 +2549,23 @@ const char *tls_handshake_state_to_str(enum > > tls_handshake_state state) > > /* X509 Certificates and Certificate Chains */ > > = > > #define X509_CERTIFICATE_POS 0 > > -#define X509_TBSCERTIFICATE_POS 0 > > -#define X509_TBSCERT_VERSION_POS 0 > > -#define X509_TBSCERT_SERIAL_POS 1 > > -#define X509_TBSCERT_SIGNATURE_POS 2 > > -#define X509_ALGORITHM_ID_ALGORITHM_POS 0 > > -#define X509_ALGORITHM_ID_PARAMS_POS 1 > > -#define X509_TBSCERT_ISSUER_DN_POS 3 > > -#define X509_TBSCERT_VALIDITY_POS 4 > > -#define X509_TBSCERT_SUBJECT_DN_POS 5 > > -#define X509_TBSCERT_SUBJECT_KEY_POS 6 > > -#define X509_SUBJECT_KEY_ALGORITHM_POS 0 > > -#define X509_SUBJECT_KEY_VALUE_POS 1 > > -#define X509_TBSCERT_ISSUER_UID_POS 7 > > -#define X509_TBSCERT_SUBJECT_UID_POS 8 > > -#define X509_TBSCERT_EXTENSIONS_POS 9 > > -#define X509_SIGNATURE_ALGORITHM_POS 1 > > -#define X509_SIGNATURE_VALUE_POS 2 > > +#define X509_TBSCERTIFICATE_POS 0 > > +#define X509_TBSCERT_VERSION_POS 0 > > +#define X509_TBSCERT_SERIAL_POS 1 > > +#define X509_TBSCERT_SIGNATURE_POS 2 > > +#define X509_ALGORITHM_ID_ALGORITHM_POS 0 > > +#define X509_ALGORITHM_ID_PARAMS_POS 1 > > +#define X509_TBSCERT_ISSUER_DN_POS 3 > > +#define X509_TBSCERT_VALIDITY_POS 4 > > +#define X509_TBSCERT_SUBJECT_DN_POS 5 > > +#define X509_TBSCERT_SUBJECT_KEY_POS 6 > > +#define X509_SUBJECT_KEY_ALGORITHM_POS 0 > > +#define X509_SUBJECT_KEY_VALUE_POS 1 > > +#define X509_TBSCERT_ISSUER_UID_POS 7 > > +#define X509_TBSCERT_SUBJECT_UID_POS 8 > > +#define X509_TBSCERT_EXTENSIONS_POS 9 > > +#define X509_SIGNATURE_ALGORITHM_POS 1 > > +#define X509_SIGNATURE_VALUE_POS 2 > > = > > struct tls_cert *tls_cert_load_file(const char *filename) > > { > > -- = > > 2.17.1 > > = > > _______________________________________________ > > ell mailing list > > ell(a)lists.01.org > > https://lists.01.org/mailman/listinfo/ell > > = > = > -- > Mat Martineau > Intel OTC --===============0258464636810739016==--