[Botan-devel] New with Botan
Brought to you by:
randombit
|
From: Mauricio C. S. <mca...@in...> - 2003-07-01 21:53:43
|
Hi.
I just download Botan 1.2.4 and start using it.
I'm working in Linux RedHat 7.1, gcc 2.96.
I compile the library and everything goes fine.
I then create a simple program, that just gets a certificate from a file.
The program returns this:
Aborted (core dumped).
I'm compiling the source with:
g++ -o test test1.cpp -I../include/botan -lbotan
I don't know what I'm missing... thanks for the help.
____________Test1.cpp___________________________
#include <botan.h>
#include <iostream>
#include <x509cert.h>
using namespace Botan;
int main()
{
LibraryInitializer init;
DataSource_Stream in("user1.cer");
cout << "Datasource ready." << endl;
X509_Certificate cert(in); //This is not working
return 0;
}
______________________________________
Ing. Mauricio Castillo Silva
Software Engineer
Insys, S.A. de C.V.
|