Validating names in SSL certificates using OpenSSL (0.9.8)

Recently I’ve battled with OpenSSL at work. One thing I needed to do was add name validation to a program that previously hasn’t had it. In an attempt to avoid obvious mistakes I went looking for existing examples for how to do it. I came across some code from Secure, it can be found …

Continue reading ‘Validating names in SSL certificates using OpenSSL (0.9.8)’ »


Banging my head against sparse files

Lately I’ve had use for sparse files to solve a problem. Simple, yes. Use lseek and write (or read). Even better, at least in this case, use pwrite and pread. Should be simple, right? Yes, should be. I was banging my head against code equivalent to the following for quite a few hours: #define _XOPEN_SOURCE …

Continue reading ‘Banging my head against sparse files’ »