Hello,

I was wondering if I could get some assistance in decoding BER-encoded data
from a file.  While I am fluent in C, my recent brushes with C++ could be
described as at best "misguided".  The generated manual provided doesn't
prove to be easy reading, either.  I have tried setting up like so:-

#include <stdio.h>
#include "asn.h"
#include "cryptlib.h"
#include "files.h"

int main(void)
{
   CryptoPP::FileSource("data.in", true, new CryptoPP::BERGeneralDecoder(new
CryptoPP::FileSink("data.out")));

   return 0;
}

But apparently the FileSink object cannot be converted to a
BufferedTransformation.  Any ideas?
Failing that, does anyone know of any C-based libraries that deal with
ASN.1?

Reply via email to