mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Bind X509 attribute methods for EVP_PKEYs
This commit is contained in:
parent
5eed941af2
commit
973fc268f7
2 changed files with 15 additions and 0 deletions
|
|
@ -105,6 +105,19 @@ int PKCS5_PBKDF2_HMAC_SHA1(const char *, int, const unsigned char *, int, int,
|
|||
|
||||
int EVP_PKEY_set1_RSA(EVP_PKEY *, struct rsa_st *);
|
||||
int EVP_PKEY_set1_DSA(EVP_PKEY *, struct dsa_st *);
|
||||
|
||||
int EVP_PKEY_get_attr_count(const EVP_PKEY *);
|
||||
int EVP_PKEY_get_attr_by_NID(const EVP_PKEY *, int, int);
|
||||
int EVP_PKEY_get_attr_by_OBJ(const EVP_PKEY *, ASN1_OBJECT *, int);
|
||||
X509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *, int);
|
||||
X509_ATTRIBUTE *EVP_PKEY_delete_attr(EVP_PKEY *, int);
|
||||
int EVP_PKEY_add1_attr(EVP_PKEY *, X509_ATTRIBUTE *);
|
||||
int EVP_PKEY_add1_attr_by_OBJ(EVP_PKEY *, const ASN1_OBJECT *, int,
|
||||
const unsigned char *, int);
|
||||
int EVP_PKEY_add1_attr_by_NID(EVP_PKEY *, int, int,
|
||||
const unsigned char *, int);
|
||||
int EVP_PKEY_add1_attr_by_txt(EVP_PKEY *, const char *, int,
|
||||
const unsigned char *, int);
|
||||
"""
|
||||
|
||||
MACROS = """
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@ typedef struct {
|
|||
...;
|
||||
} X509_ALGOR;
|
||||
|
||||
typedef ... X509_ATTRIBUTE;
|
||||
|
||||
typedef struct {
|
||||
X509_ALGOR *signature;
|
||||
...;
|
||||
|
|
|
|||
Loading…
Reference in a new issue