I'm playing with encryption etc at the moment. Looking at bindings
for various packages.

So for OpenSSL .. does anyone know where there are any 
real documents? The openssl.org website has links to 
utterly useless man pages. Lots of functions listed in a
difficult format with no specifications.

i have not looked yet but I'd guess GNU/TLS is much better documented
simply because GNU stuff always is: the licence is the main problem.
In this code for example:

    STACK_OF(X509) *peerCertificates = SSL_get_peer_cert_chain(ssl);
    X509 *top = sk_X509_pop(peerCertificates);
    while (top) 
    {
       X509_NAME * name = X509_get_subject_name(top);
       X509_NAME_get_text_by_NID(name, NID_commonName, commonName, 512);
       printf("Signed by: %s\n", commonName);
       top = sk_X509_pop(peerCertificates);
    }
  }

I had to troll through the header files AND the source code to figure
out how to get entries out of the stack. I have no idea what to do
with the popped off entry (I guess "free()" isn't allowed here because
OpenSSL uses custom allocators for security).

I had to "guess" at the way to get subjectAltName several times
(not shown in the code above).

In this area, I'm lucky, there were a couple of tutorials floating around.
Most of the links on the web site and other sites like the tutorials
are broken though.

I just read an article about broken certificate verification with SSL,
and the authors say the various API's are confusing and programmers
don't always get it right.

in the case of openssl the author should get the Logie award
for Comedy .. programmers cannot be confused. That only
happens when you have "not quite enough knowledge".
In this case there's NO documentation, unless you consider
a man page with a list of function prototypes documentation.

There are books written on this. Where did the book authors
get their information?

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to