Migrating from 1.0.2 to 1.1.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I try to migrate the following code from 1.0.2 to 1.1.1:

=========
 ASN1_OBJECT *seed_id = OBJ_txt2obj(my_oid,1);
 int seed_pos = EVP_PKEY_get_attr_by_OBJ(pk, seed_id, -1);

  if (seed_pos >= 0)
  {
    X509_ATTRIBUTE *attr = EVP_PKEY_get_attr(pk, seed_pos);
    CE_CHECK(X509at_add1_attr(&(p8->attributes), attr) != NULL, 0, CRYPTOCOM_R_NO_MEMORY);
  }
==========
The code is intended to add a custom attribute to PKCS8 attributes.
How do I do it in 1.1.1?

Thank you!

--
SY, Dmitry Belyavsky

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux