问题
I was wondering whether someone knows any good examples of using libssl as a programming library. Its kind of annoying only digging through the code of libssl trying to make sense of it.
回答1:
You've run into the lack of documentation problem OpenSSL has. IBM DeveloperWorks does have a couple articles about using OpenSSL:
- http://www.ibm.com/developerworks/linux/library/l-openssl.html
- http://www.ibm.com/developerworks/linux/library/l-openssl2.html
- http://www.ibm.com/developerworks/linux/library/l-openssl3.html
If you want to utilize a better documented library, you can take a look at Mozilla NSS:
- http://www.mozilla.org/projects/security/pki/nss/#documentation
回答2:
Just that I'm using Openssl too and think their wiki page also has some good info: http://wiki.openssl.org/index.php/Main_Page
回答3:
Here is a good working example that's especially useful for iOS developers:
the remail email client uses MailCore iOS email library wrapper, which in turn uses the multi-purpose libetpan email library, which in turn uses SASL, an authentication layer, which in turn uses your beloved openSSL.
So if you're a believer in the learn-by-example methodology, the above gives you a lot to work with and practice on.
来源:https://stackoverflow.com/questions/5009271/any-good-examples-on-programming-using-libssl