Hi all, I likely have a trivial question... I am exploring my options with OpenSSL and specifically I am trying to manage the stacks for some custom objects.

Currently, I have this code (sort of):

typedef struct myThingA_st
{
    ASN1_OBJECT aID;
    ASN1_OCTET_STRING aOCST;
}
    myThingA;

DECLARE_ASN1_ITEM(myThingA)
DECLARE_ASN1_FUNCTIONS(myThingA)
DECLARE_STACK_OF(myThingA)
// the next one seems to be ininfluent for my purpose, is it?
DECLARE_ASN1_SET_OF(myThingA)

typedef struct myThingB_st
{
    // SEQUENCE OF { ... }
    STACK_OF(myThingA) myThingA_sk;
}
    myThingB;

// DECLARE_ASN1_ITEM(myThingB)
DECLARE_STACK_OF(myThingB)
// DECLARE_ASN1_FUNCTIONS(myThingB)
// the next one seems to be ininfluent for my purpose, is it?
DECLARE_ASN1_SET_OF(myThingB)


I thought that the basic functions for the stacks to be available (such as sk_myThingA_new, sk_myThingA_push...), yet by compiling a main, for the first one that I tried to use I get:

      undefined reference to `sk_myThingA_value'

so I likely have to activate some macro in the C code, like

      IMPLEMENT_STACK_STUFF(myThingA)

      IMPLEMENT_STACK_STUFF(myThingB)

right? If so, what would it be?
Or is it o me to write the functions down?


--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to