[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openssl-dev
Subject:    [openssl-dev] API Problems in current master
From:       Richard Moore <rich () kde ! org>
Date:       2016-03-13 13:34:45
Message-ID: CAMp7mVso0RAT--a29egmk=nhvrKOaP9T0bB0Aq1LvKj8p2MFbQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I'm currently testing the new release by trying to port Qt to use it (with
the compatibility stuff disabled). Here are the first problems I've hit:

How do we get the certificate serial number? We were doing
x509->cert_info->serialNumber
to get it as an ASN1_INTEGER.

https://www.openssl.org/docs/manmaster/crypto/EVP_PKEY_type.html says:
"EVP_PKEY_type() returns the type of key corresponding to the value type.
The type of a key can be obtained with EVP_PKEY_type(pkey->type)." except
it can't
because the structure is now opaque.

Cheers

Rich.

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_default" \
style="font-family:verdana,sans-serif">I&#39;m currently testing the new release by \
trying to port Qt to use it (with the compatibility stuff disabled). Here are the \
first problems I&#39;ve hit:</div><div class="gmail_default" \
style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" \
style=""><div class="gmail_default" style=""><font face="verdana, sans-serif">How do \
we get the certificate serial number? We were doing  </font><span \
style="font-family:verdana,sans-serif">x509-&gt;cert_info-&gt;serialNumber to get it \
as an ASN1_INTEGER.</span></div><div class="gmail_default" style=""><font \
face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font \
face="verdana, sans-serif"><a \
href="https://www.openssl.org/docs/manmaster/crypto/EVP_PKEY_type.html">https://www.openssl.org/docs/manmaster/crypto/EVP_PKEY_type.html</a> \
says:</font></div><div class="gmail_default" style=""><font face="verdana, \
sans-serif">&quot;EVP_PKEY_type() returns the type of key corresponding to the value \
type. The  </font><span style="font-family:verdana,sans-serif">type of a key can be \
obtained with EVP_PKEY_type(pkey-&gt;type).&quot; except it \
can&#39;t</span></div><div class="gmail_default" style=""><font face="verdana, \
sans-serif">because the structure is now opaque.</font></div><div \
class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div \
class="gmail_default" style="font-family:verdana,sans-serif">Cheers</div><div \
class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div \
class="gmail_default" style="font-family:verdana,sans-serif">Rich.</div><div \
class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div></div>



-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic