Hi: I'm having a hard time figuring out the return value for X509_load_crl_file. As best I can tell it is:
If NULL input file return 1 else if input file read into BIO return number of successfully imported revoked certs else return 0 So what if the CRL file has no certs? This should be valid right? How do I tell the difference between an empty file and an invalid one? And if it returns 1 then how do I know if I just passed in NULL for the file instead of reading in a file with one cert. Also, how do I tell the difference between a file with 32 valid certs and one with more where the 33rd couldn't be read and imported? The return value seems really ambiguous to me and there is no way to know if there was an error or not. Am I just missing something obvious? -Chris