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.
You've run into the lack of documentation problem OpenSSL has. IBM DeveloperWorks does have a couple articles about using OpenSSL:
If you want to utilize a better documented library, you can take a look at Mozilla NSS: