Home | History | Annotate | Line # | Download | only in internal
      1      1.1  christos /*
      2      1.1  christos  * Copyright 2019-2024 The OpenSSL Project Authors. All Rights Reserved.
      3      1.1  christos  *
      4      1.1  christos  * Licensed under the Apache License 2.0 (the "License").  You may not use
      5      1.1  christos  * this file except in compliance with the License.  You can obtain a copy
      6      1.1  christos  * in the file LICENSE in the source distribution or at
      7      1.1  christos  * https://www.openssl.org/source/license.html
      8      1.1  christos  */
      9      1.1  christos #ifndef OSSL_CRYPTO_CRMF_H
     10  1.1.1.2  christos #define OSSL_CRYPTO_CRMF_H
     11  1.1.1.2  christos #pragma once
     12      1.1  christos 
     13  1.1.1.2  christos #include <openssl/crmf.h>
     14      1.1  christos 
     15      1.1  christos struct ossl_crmf_attributetypeandvalue_st {
     16      1.1  christos     ASN1_OBJECT *type;
     17      1.1  christos     union {
     18      1.1  christos         /* NID_id_regCtrl_regToken */
     19      1.1  christos         ASN1_UTF8STRING *regToken;
     20      1.1  christos 
     21      1.1  christos         /* NID_id_regCtrl_authenticator */
     22      1.1  christos         ASN1_UTF8STRING *authenticator;
     23      1.1  christos 
     24      1.1  christos         /* NID_id_regCtrl_pkiPublicationInfo */
     25      1.1  christos         OSSL_CRMF_PKIPUBLICATIONINFO *pkiPublicationInfo;
     26      1.1  christos 
     27      1.1  christos         /* NID_id_regCtrl_oldCertID */
     28      1.1  christos         OSSL_CRMF_CERTID *oldCertID;
     29      1.1  christos 
     30      1.1  christos         /* NID_id_regCtrl_protocolEncrKey */
     31      1.1  christos         X509_PUBKEY *protocolEncrKey;
     32      1.1  christos 
     33      1.1  christos         /* NID_id_regCtrl_algId */
     34      1.1  christos         X509_ALGOR *algId;
     35      1.1  christos 
     36      1.1  christos         /* NID_id_regCtrl_rsaKeyLen */
     37      1.1  christos         ASN1_INTEGER *rsaKeyLen;
     38      1.1  christos 
     39      1.1  christos         /* NID_id_regInfo_utf8Pairs */
     40      1.1  christos         ASN1_UTF8STRING *utf8Pairs;
     41      1.1  christos 
     42      1.1  christos         /* NID_id_regInfo_certReq */
     43      1.1  christos         OSSL_CRMF_CERTREQUEST *certReq;
     44      1.1  christos 
     45      1.1  christos         ASN1_TYPE *other;
     46      1.1  christos     } value;
     47      1.1  christos } /* OSSL_CRMF_ATTRIBUTETYPEANDVALUE */;
     48      1.1  christos DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_ATTRIBUTETYPEANDVALUE)
     49      1.1  christos DECLARE_ASN1_DUP_FUNCTION(OSSL_CRMF_ATTRIBUTETYPEANDVALUE)
     50      1.1  christos 
     51      1.1  christos #endif /* OSSL_CRYPTO_CRMF_H */
     52