[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Object Store question
Hi
I have included my response on the specific error message.
-----Original Message-----
From: Mike Shanzer [mailto:shanzer@xxxxxxxxxx]
Sent: Tuesday, February 01, 2000 7:13 AM
To: Ravi.Tolani
Subject: Re: Object Store question
Ravi Tolani wrote:
>
> Hi
> I am trying to using the objectStore in a project and was wondering
> if someone could shed some light on its use. Is it possible to use the
> ObjectStore to store binary data which is not ASN1 encoded. I would like
> to use the store to manage certain certificates which comprise of a BLOB
> of data.
The way the object store is currently set up the the actual data does need
to be asn.1 encoded. If you want to store a blob of data you can store it
as an asn.1 encoded octetstring.
> Also, I was able to compile the ObjectStore as a seperate dll but have
> been unable to compile the ostest.cpp program which resides in the same
> directory as ObjectStore. Has anyone been able to get it to work
What was the error you were getting? we never tried to do this, but
I do not see what it would not work. There might be some dependencies
on things in OSSRV and of course asn.1.
Here is my response. I am getting a compile time error when I try to compile
the ostest.cpp file. I have appended my response at the end. Apparently it
is becuase it cannot find the definitions of the members of ObjStoreData
which have been explicitly instantiated.
Thanks for your help
-------------------Configuration: ObjectStoreTest - Win32
Debug--------------------
Compiling...
ostest.cpp
D:\WTLS\ObjectStore\ostest.cpp(104) : error C2039: 'directoryname' : is not
a member of 'asn_explicit<class GeneralName,2,1>'
D:\WTLS\ObjectStore\ostest.cpp(104) : error C2228: left of '.set_value_UTF8'
must have class/struct/union type
D:\WTLS\ObjectStore\ostest.cpp(105) : error C2039: 'select' : is not a
member of 'asn_explicit<class GeneralName,2,1>'
D:\WTLS\ObjectStore\ostest.cpp(106) : error C2039: 'set_value' : is not a
member of 'asn_explicit<class asn_ia5String,2,2>'
D:\WTLS\ObjectStore\ostest.cpp(107) : error C2039: 'set_value' : is not a
member of 'asn_explicit<class asn_octetstring,2,3>'
D:\WTLS\ObjectStore\ostest.cpp(175) : error C2039: 'directoryname' : is not
a member of 'asn_explicit<class GeneralName,2,1>'
D:\WTLS\ObjectStore\ostest.cpp(175) : error C2228: left of '.set_value_UTF8'
must have class/struct/union type
D:\WTLS\ObjectStore\ostest.cpp(201) : error C2039: 'directoryname' : is not
a member of 'asn_explicit<class GeneralName,2,1>'
D:\WTLS\ObjectStore\ostest.cpp(201) : error C2228: left of '.set_value_UTF8'
must have class/struct/union type
D:\WTLS\ObjectStore\ostest.cpp(228) : error C2039: 'directoryname' : is not
a member of 'asn_explicit<class GeneralName,2,1>'
D:\WTLS\ObjectStore\ostest.cpp(228) : error C2228: left of '.set_value_UTF8'
must have class/struct/union type
D:\WTLS\ObjectStore\ostest.cpp(256) : error C2039: 'directoryname' : is not
a member of 'asn_explicit<class GeneralName,2,1>'
D:\WTLS\ObjectStore\ostest.cpp(256) : error C2228: left of '.set_value_UTF8'
must have class/struct/union type
Error executing cl.exe.
ostest.obj - 13 error(s), 1 warning(s)
Mike
>