1 /* c/zx-ds-data.h - WARNING: This header was auto generated by xsd2sg.pl. DO NOT EDIT! 2 * $Id$ */ 3 /* Datastructure design, topography, and layout 4 * Copyright (c) 2006,2010 Sampo Kellomaki (sampo@iki.fi), 5 * All Rights Reserved. NO WARRANTY. See file COPYING for 6 * terms and conditions of use. Element and attributes names as well 7 * as some topography are derived from schema descriptions that were used as 8 * input and may be subject to their own copright. */ 9 10 #ifndef _c_zx_ds_data_h 11 #define _c_zx_ds_data_h 12 13 #include "zx.h" 14 #include "c/zx-const.h" 15 #include "c/zx-data.h" 16 17 #ifndef ZX_ELEM_EXT 18 #define ZX_ELEM_EXT /* This extension point should be defined by who includes this file. */ 19 #endif 20 21 /* -------------------------- ds_CanonicalizationMethod -------------------------- */ 22 /* refby( zx_ds_SignedInfo_s ) */ 23 #ifndef zx_ds_CanonicalizationMethod_EXT 24 #define zx_ds_CanonicalizationMethod_EXT 25 #endif 26 struct zx_ds_CanonicalizationMethod_s { 27 ZX_ELEM_EXT 28 zx_ds_CanonicalizationMethod_EXT 29 struct zx_attr_s* Algorithm; /* {1,1} attribute xs:anyURI */ 30 }; 31 32 #define zx_NEW_ds_CanonicalizationMethod(c, father) (struct zx_ds_CanonicalizationMethod_s*)zx_new_elem((c),(father),zx_ds_CanonicalizationMethod_ELEM) 33 int zx_DEC_ATTR_ds_CanonicalizationMethod(struct zx_ctx* c, struct zx_ds_CanonicalizationMethod_s* x); 34 int zx_DEC_ELEM_ds_CanonicalizationMethod(struct zx_ctx* c, struct zx_ds_CanonicalizationMethod_s* x); 35 36 #ifdef ZX_ENA_AUX 37 struct zx_ds_CanonicalizationMethod_s* zx_DEEP_CLONE_ds_CanonicalizationMethod(struct zx_ctx* c, struct zx_ds_CanonicalizationMethod_s* x, int dup_strs); 38 void zx_DUP_STRS_ds_CanonicalizationMethod(struct zx_ctx* c, struct zx_ds_CanonicalizationMethod_s* x); 39 int zx_WALK_SO_ds_CanonicalizationMethod(struct zx_ctx* c, struct zx_ds_CanonicalizationMethod_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 40 int zx_WALK_WO_ds_CanonicalizationMethod(struct zx_ctx* c, struct zx_ds_CanonicalizationMethod_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 41 #endif 42 43 #ifdef ZX_ENA_GETPUT 44 struct zx_attr_s* zx_ds_CanonicalizationMethod_GET_Algorithm(struct zx_ds_CanonicalizationMethod_s* x); 45 46 47 48 49 50 void zx_ds_CanonicalizationMethod_PUT_Algorithm(struct zx_ds_CanonicalizationMethod_s* x, struct zx_attr_s* y); 51 52 53 54 55 56 #endif 57 /* -------------------------- ds_DSAKeyValue -------------------------- */ 58 /* refby( zx_ds_KeyValue_s ) */ 59 #ifndef zx_ds_DSAKeyValue_EXT 60 #define zx_ds_DSAKeyValue_EXT 61 #endif 62 struct zx_ds_DSAKeyValue_s { 63 ZX_ELEM_EXT 64 zx_ds_DSAKeyValue_EXT 65 struct zx_elem_s* P; /* {0,1} xs:base64Binary */ 66 struct zx_elem_s* Q; /* {0,1} xs:base64Binary */ 67 struct zx_elem_s* G; /* {0,1} xs:base64Binary */ 68 struct zx_elem_s* Y; /* {1,1} xs:base64Binary */ 69 struct zx_elem_s* J; /* {0,1} xs:base64Binary */ 70 struct zx_elem_s* Seed; /* {0,1} xs:base64Binary */ 71 struct zx_elem_s* PgenCounter; /* {0,1} xs:base64Binary */ 72 }; 73 74 #define zx_NEW_ds_DSAKeyValue(c, father) (struct zx_ds_DSAKeyValue_s*)zx_new_elem((c),(father),zx_ds_DSAKeyValue_ELEM) 75 int zx_DEC_ATTR_ds_DSAKeyValue(struct zx_ctx* c, struct zx_ds_DSAKeyValue_s* x); 76 int zx_DEC_ELEM_ds_DSAKeyValue(struct zx_ctx* c, struct zx_ds_DSAKeyValue_s* x); 77 78 #ifdef ZX_ENA_AUX 79 struct zx_ds_DSAKeyValue_s* zx_DEEP_CLONE_ds_DSAKeyValue(struct zx_ctx* c, struct zx_ds_DSAKeyValue_s* x, int dup_strs); 80 void zx_DUP_STRS_ds_DSAKeyValue(struct zx_ctx* c, struct zx_ds_DSAKeyValue_s* x); 81 int zx_WALK_SO_ds_DSAKeyValue(struct zx_ctx* c, struct zx_ds_DSAKeyValue_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 82 int zx_WALK_WO_ds_DSAKeyValue(struct zx_ctx* c, struct zx_ds_DSAKeyValue_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 83 #endif 84 85 #ifdef ZX_ENA_GETPUT 86 87 struct zx_elem_s* zx_ds_DSAKeyValue_GET_P(struct zx_ds_DSAKeyValue_s* x, int n); 88 struct zx_elem_s* zx_ds_DSAKeyValue_GET_Q(struct zx_ds_DSAKeyValue_s* x, int n); 89 struct zx_elem_s* zx_ds_DSAKeyValue_GET_G(struct zx_ds_DSAKeyValue_s* x, int n); 90 struct zx_elem_s* zx_ds_DSAKeyValue_GET_Y(struct zx_ds_DSAKeyValue_s* x, int n); 91 struct zx_elem_s* zx_ds_DSAKeyValue_GET_J(struct zx_ds_DSAKeyValue_s* x, int n); 92 struct zx_elem_s* zx_ds_DSAKeyValue_GET_Seed(struct zx_ds_DSAKeyValue_s* x, int n); 93 struct zx_elem_s* zx_ds_DSAKeyValue_GET_PgenCounter(struct zx_ds_DSAKeyValue_s* x, int n); 94 95 int zx_ds_DSAKeyValue_NUM_P(struct zx_ds_DSAKeyValue_s* x); 96 int zx_ds_DSAKeyValue_NUM_Q(struct zx_ds_DSAKeyValue_s* x); 97 int zx_ds_DSAKeyValue_NUM_G(struct zx_ds_DSAKeyValue_s* x); 98 int zx_ds_DSAKeyValue_NUM_Y(struct zx_ds_DSAKeyValue_s* x); 99 int zx_ds_DSAKeyValue_NUM_J(struct zx_ds_DSAKeyValue_s* x); 100 int zx_ds_DSAKeyValue_NUM_Seed(struct zx_ds_DSAKeyValue_s* x); 101 int zx_ds_DSAKeyValue_NUM_PgenCounter(struct zx_ds_DSAKeyValue_s* x); 102 103 struct zx_elem_s* zx_ds_DSAKeyValue_POP_P(struct zx_ds_DSAKeyValue_s* x); 104 struct zx_elem_s* zx_ds_DSAKeyValue_POP_Q(struct zx_ds_DSAKeyValue_s* x); 105 struct zx_elem_s* zx_ds_DSAKeyValue_POP_G(struct zx_ds_DSAKeyValue_s* x); 106 struct zx_elem_s* zx_ds_DSAKeyValue_POP_Y(struct zx_ds_DSAKeyValue_s* x); 107 struct zx_elem_s* zx_ds_DSAKeyValue_POP_J(struct zx_ds_DSAKeyValue_s* x); 108 struct zx_elem_s* zx_ds_DSAKeyValue_POP_Seed(struct zx_ds_DSAKeyValue_s* x); 109 struct zx_elem_s* zx_ds_DSAKeyValue_POP_PgenCounter(struct zx_ds_DSAKeyValue_s* x); 110 111 void zx_ds_DSAKeyValue_PUSH_P(struct zx_ds_DSAKeyValue_s* x, struct zx_elem_s* y); 112 void zx_ds_DSAKeyValue_PUSH_Q(struct zx_ds_DSAKeyValue_s* x, struct zx_elem_s* y); 113 void zx_ds_DSAKeyValue_PUSH_G(struct zx_ds_DSAKeyValue_s* x, struct zx_elem_s* y); 114 void zx_ds_DSAKeyValue_PUSH_Y(struct zx_ds_DSAKeyValue_s* x, struct zx_elem_s* y); 115 void zx_ds_DSAKeyValue_PUSH_J(struct zx_ds_DSAKeyValue_s* x, struct zx_elem_s* y); 116 void zx_ds_DSAKeyValue_PUSH_Seed(struct zx_ds_DSAKeyValue_s* x, struct zx_elem_s* y); 117 void zx_ds_DSAKeyValue_PUSH_PgenCounter(struct zx_ds_DSAKeyValue_s* x, struct zx_elem_s* y); 118 119 120 void zx_ds_DSAKeyValue_PUT_P(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* y); 121 void zx_ds_DSAKeyValue_PUT_Q(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* y); 122 void zx_ds_DSAKeyValue_PUT_G(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* y); 123 void zx_ds_DSAKeyValue_PUT_Y(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* y); 124 void zx_ds_DSAKeyValue_PUT_J(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* y); 125 void zx_ds_DSAKeyValue_PUT_Seed(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* y); 126 void zx_ds_DSAKeyValue_PUT_PgenCounter(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* y); 127 128 void zx_ds_DSAKeyValue_ADD_P(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* z); 129 void zx_ds_DSAKeyValue_ADD_Q(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* z); 130 void zx_ds_DSAKeyValue_ADD_G(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* z); 131 void zx_ds_DSAKeyValue_ADD_Y(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* z); 132 void zx_ds_DSAKeyValue_ADD_J(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* z); 133 void zx_ds_DSAKeyValue_ADD_Seed(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* z); 134 void zx_ds_DSAKeyValue_ADD_PgenCounter(struct zx_ds_DSAKeyValue_s* x, int n, struct zx_elem_s* z); 135 136 void zx_ds_DSAKeyValue_DEL_P(struct zx_ds_DSAKeyValue_s* x,int n); 137 void zx_ds_DSAKeyValue_DEL_Q(struct zx_ds_DSAKeyValue_s* x,int n); 138 void zx_ds_DSAKeyValue_DEL_G(struct zx_ds_DSAKeyValue_s* x,int n); 139 void zx_ds_DSAKeyValue_DEL_Y(struct zx_ds_DSAKeyValue_s* x,int n); 140 void zx_ds_DSAKeyValue_DEL_J(struct zx_ds_DSAKeyValue_s* x,int n); 141 void zx_ds_DSAKeyValue_DEL_Seed(struct zx_ds_DSAKeyValue_s* x,int n); 142 void zx_ds_DSAKeyValue_DEL_PgenCounter(struct zx_ds_DSAKeyValue_s* x,int n); 143 144 void zx_ds_DSAKeyValue_REV_P(struct zx_ds_DSAKeyValue_s* x); 145 void zx_ds_DSAKeyValue_REV_Q(struct zx_ds_DSAKeyValue_s* x); 146 void zx_ds_DSAKeyValue_REV_G(struct zx_ds_DSAKeyValue_s* x); 147 void zx_ds_DSAKeyValue_REV_Y(struct zx_ds_DSAKeyValue_s* x); 148 void zx_ds_DSAKeyValue_REV_J(struct zx_ds_DSAKeyValue_s* x); 149 void zx_ds_DSAKeyValue_REV_Seed(struct zx_ds_DSAKeyValue_s* x); 150 void zx_ds_DSAKeyValue_REV_PgenCounter(struct zx_ds_DSAKeyValue_s* x); 151 152 #endif 153 /* -------------------------- ds_DigestMethod -------------------------- */ 154 /* refby( zx_ds_Reference_s ) */ 155 #ifndef zx_ds_DigestMethod_EXT 156 #define zx_ds_DigestMethod_EXT 157 #endif 158 struct zx_ds_DigestMethod_s { 159 ZX_ELEM_EXT 160 zx_ds_DigestMethod_EXT 161 struct zx_attr_s* Algorithm; /* {1,1} attribute xs:anyURI */ 162 }; 163 164 #define zx_NEW_ds_DigestMethod(c, father) (struct zx_ds_DigestMethod_s*)zx_new_elem((c),(father),zx_ds_DigestMethod_ELEM) 165 int zx_DEC_ATTR_ds_DigestMethod(struct zx_ctx* c, struct zx_ds_DigestMethod_s* x); 166 int zx_DEC_ELEM_ds_DigestMethod(struct zx_ctx* c, struct zx_ds_DigestMethod_s* x); 167 168 #ifdef ZX_ENA_AUX 169 struct zx_ds_DigestMethod_s* zx_DEEP_CLONE_ds_DigestMethod(struct zx_ctx* c, struct zx_ds_DigestMethod_s* x, int dup_strs); 170 void zx_DUP_STRS_ds_DigestMethod(struct zx_ctx* c, struct zx_ds_DigestMethod_s* x); 171 int zx_WALK_SO_ds_DigestMethod(struct zx_ctx* c, struct zx_ds_DigestMethod_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 172 int zx_WALK_WO_ds_DigestMethod(struct zx_ctx* c, struct zx_ds_DigestMethod_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 173 #endif 174 175 #ifdef ZX_ENA_GETPUT 176 struct zx_attr_s* zx_ds_DigestMethod_GET_Algorithm(struct zx_ds_DigestMethod_s* x); 177 178 179 180 181 182 void zx_ds_DigestMethod_PUT_Algorithm(struct zx_ds_DigestMethod_s* x, struct zx_attr_s* y); 183 184 185 186 187 188 #endif 189 /* -------------------------- ds_KeyInfo -------------------------- */ 190 /* refby( zx_is_InteractionRequest_s zx_md_KeyDescriptor_s zx_sa_SubjectConfirmationData_s zx_sa11_SubjectConfirmation_s zx_m20_KeyDescriptor_s zx_xenc_EncryptedData_s zx_ds_Signature_s zx_shibmd_KeyAuthority_s zx_is12_InteractionRequest_s zx_xenc_EncryptedKey_s ) */ 191 #ifndef zx_ds_KeyInfo_EXT 192 #define zx_ds_KeyInfo_EXT 193 #endif 194 struct zx_ds_KeyInfo_s { 195 ZX_ELEM_EXT 196 zx_ds_KeyInfo_EXT 197 struct zx_elem_s* KeyName; /* {0,-1} xs:string */ 198 struct zx_ds_KeyValue_s* KeyValue; /* {0,-1} nada */ 199 struct zx_ds_RetrievalMethod_s* RetrievalMethod; /* {0,-1} nada */ 200 struct zx_ds_X509Data_s* X509Data; /* {0,-1} nada */ 201 struct zx_ds_PGPData_s* PGPData; /* {0,-1} nada */ 202 struct zx_ds_SPKIData_s* SPKIData; /* {0,-1} nada */ 203 struct zx_elem_s* MgmtData; /* {0,-1} xs:string */ 204 struct zx_xenc_EncryptedKey_s* EncryptedKey; /* {0,-1} nada */ 205 struct zx_attr_s* Id; /* {0,1} attribute xs:ID */ 206 }; 207 208 #define zx_NEW_ds_KeyInfo(c, father) (struct zx_ds_KeyInfo_s*)zx_new_elem((c),(father),zx_ds_KeyInfo_ELEM) 209 int zx_DEC_ATTR_ds_KeyInfo(struct zx_ctx* c, struct zx_ds_KeyInfo_s* x); 210 int zx_DEC_ELEM_ds_KeyInfo(struct zx_ctx* c, struct zx_ds_KeyInfo_s* x); 211 212 #ifdef ZX_ENA_AUX 213 struct zx_ds_KeyInfo_s* zx_DEEP_CLONE_ds_KeyInfo(struct zx_ctx* c, struct zx_ds_KeyInfo_s* x, int dup_strs); 214 void zx_DUP_STRS_ds_KeyInfo(struct zx_ctx* c, struct zx_ds_KeyInfo_s* x); 215 int zx_WALK_SO_ds_KeyInfo(struct zx_ctx* c, struct zx_ds_KeyInfo_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 216 int zx_WALK_WO_ds_KeyInfo(struct zx_ctx* c, struct zx_ds_KeyInfo_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 217 #endif 218 219 #ifdef ZX_ENA_GETPUT 220 struct zx_attr_s* zx_ds_KeyInfo_GET_Id(struct zx_ds_KeyInfo_s* x); 221 222 struct zx_elem_s* zx_ds_KeyInfo_GET_KeyName(struct zx_ds_KeyInfo_s* x, int n); 223 struct zx_ds_KeyValue_s* zx_ds_KeyInfo_GET_KeyValue(struct zx_ds_KeyInfo_s* x, int n); 224 struct zx_ds_RetrievalMethod_s* zx_ds_KeyInfo_GET_RetrievalMethod(struct zx_ds_KeyInfo_s* x, int n); 225 struct zx_ds_X509Data_s* zx_ds_KeyInfo_GET_X509Data(struct zx_ds_KeyInfo_s* x, int n); 226 struct zx_ds_PGPData_s* zx_ds_KeyInfo_GET_PGPData(struct zx_ds_KeyInfo_s* x, int n); 227 struct zx_ds_SPKIData_s* zx_ds_KeyInfo_GET_SPKIData(struct zx_ds_KeyInfo_s* x, int n); 228 struct zx_elem_s* zx_ds_KeyInfo_GET_MgmtData(struct zx_ds_KeyInfo_s* x, int n); 229 struct zx_xenc_EncryptedKey_s* zx_ds_KeyInfo_GET_EncryptedKey(struct zx_ds_KeyInfo_s* x, int n); 230 231 int zx_ds_KeyInfo_NUM_KeyName(struct zx_ds_KeyInfo_s* x); 232 int zx_ds_KeyInfo_NUM_KeyValue(struct zx_ds_KeyInfo_s* x); 233 int zx_ds_KeyInfo_NUM_RetrievalMethod(struct zx_ds_KeyInfo_s* x); 234 int zx_ds_KeyInfo_NUM_X509Data(struct zx_ds_KeyInfo_s* x); 235 int zx_ds_KeyInfo_NUM_PGPData(struct zx_ds_KeyInfo_s* x); 236 int zx_ds_KeyInfo_NUM_SPKIData(struct zx_ds_KeyInfo_s* x); 237 int zx_ds_KeyInfo_NUM_MgmtData(struct zx_ds_KeyInfo_s* x); 238 int zx_ds_KeyInfo_NUM_EncryptedKey(struct zx_ds_KeyInfo_s* x); 239 240 struct zx_elem_s* zx_ds_KeyInfo_POP_KeyName(struct zx_ds_KeyInfo_s* x); 241 struct zx_ds_KeyValue_s* zx_ds_KeyInfo_POP_KeyValue(struct zx_ds_KeyInfo_s* x); 242 struct zx_ds_RetrievalMethod_s* zx_ds_KeyInfo_POP_RetrievalMethod(struct zx_ds_KeyInfo_s* x); 243 struct zx_ds_X509Data_s* zx_ds_KeyInfo_POP_X509Data(struct zx_ds_KeyInfo_s* x); 244 struct zx_ds_PGPData_s* zx_ds_KeyInfo_POP_PGPData(struct zx_ds_KeyInfo_s* x); 245 struct zx_ds_SPKIData_s* zx_ds_KeyInfo_POP_SPKIData(struct zx_ds_KeyInfo_s* x); 246 struct zx_elem_s* zx_ds_KeyInfo_POP_MgmtData(struct zx_ds_KeyInfo_s* x); 247 struct zx_xenc_EncryptedKey_s* zx_ds_KeyInfo_POP_EncryptedKey(struct zx_ds_KeyInfo_s* x); 248 249 void zx_ds_KeyInfo_PUSH_KeyName(struct zx_ds_KeyInfo_s* x, struct zx_elem_s* y); 250 void zx_ds_KeyInfo_PUSH_KeyValue(struct zx_ds_KeyInfo_s* x, struct zx_ds_KeyValue_s* y); 251 void zx_ds_KeyInfo_PUSH_RetrievalMethod(struct zx_ds_KeyInfo_s* x, struct zx_ds_RetrievalMethod_s* y); 252 void zx_ds_KeyInfo_PUSH_X509Data(struct zx_ds_KeyInfo_s* x, struct zx_ds_X509Data_s* y); 253 void zx_ds_KeyInfo_PUSH_PGPData(struct zx_ds_KeyInfo_s* x, struct zx_ds_PGPData_s* y); 254 void zx_ds_KeyInfo_PUSH_SPKIData(struct zx_ds_KeyInfo_s* x, struct zx_ds_SPKIData_s* y); 255 void zx_ds_KeyInfo_PUSH_MgmtData(struct zx_ds_KeyInfo_s* x, struct zx_elem_s* y); 256 void zx_ds_KeyInfo_PUSH_EncryptedKey(struct zx_ds_KeyInfo_s* x, struct zx_xenc_EncryptedKey_s* y); 257 258 void zx_ds_KeyInfo_PUT_Id(struct zx_ds_KeyInfo_s* x, struct zx_attr_s* y); 259 260 void zx_ds_KeyInfo_PUT_KeyName(struct zx_ds_KeyInfo_s* x, int n, struct zx_elem_s* y); 261 void zx_ds_KeyInfo_PUT_KeyValue(struct zx_ds_KeyInfo_s* x, int n, struct zx_ds_KeyValue_s* y); 262 void zx_ds_KeyInfo_PUT_RetrievalMethod(struct zx_ds_KeyInfo_s* x, int n, struct zx_ds_RetrievalMethod_s* y); 263 void zx_ds_KeyInfo_PUT_X509Data(struct zx_ds_KeyInfo_s* x, int n, struct zx_ds_X509Data_s* y); 264 void zx_ds_KeyInfo_PUT_PGPData(struct zx_ds_KeyInfo_s* x, int n, struct zx_ds_PGPData_s* y); 265 void zx_ds_KeyInfo_PUT_SPKIData(struct zx_ds_KeyInfo_s* x, int n, struct zx_ds_SPKIData_s* y); 266 void zx_ds_KeyInfo_PUT_MgmtData(struct zx_ds_KeyInfo_s* x, int n, struct zx_elem_s* y); 267 void zx_ds_KeyInfo_PUT_EncryptedKey(struct zx_ds_KeyInfo_s* x, int n, struct zx_xenc_EncryptedKey_s* y); 268 269 void zx_ds_KeyInfo_ADD_KeyName(struct zx_ds_KeyInfo_s* x, int n, struct zx_elem_s* z); 270 void zx_ds_KeyInfo_ADD_KeyValue(struct zx_ds_KeyInfo_s* x, int n, struct zx_ds_KeyValue_s* z); 271 void zx_ds_KeyInfo_ADD_RetrievalMethod(struct zx_ds_KeyInfo_s* x, int n, struct zx_ds_RetrievalMethod_s* z); 272 void zx_ds_KeyInfo_ADD_X509Data(struct zx_ds_KeyInfo_s* x, int n, struct zx_ds_X509Data_s* z); 273 void zx_ds_KeyInfo_ADD_PGPData(struct zx_ds_KeyInfo_s* x, int n, struct zx_ds_PGPData_s* z); 274 void zx_ds_KeyInfo_ADD_SPKIData(struct zx_ds_KeyInfo_s* x, int n, struct zx_ds_SPKIData_s* z); 275 void zx_ds_KeyInfo_ADD_MgmtData(struct zx_ds_KeyInfo_s* x, int n, struct zx_elem_s* z); 276 void zx_ds_KeyInfo_ADD_EncryptedKey(struct zx_ds_KeyInfo_s* x, int n, struct zx_xenc_EncryptedKey_s* z); 277 278 void zx_ds_KeyInfo_DEL_KeyName(struct zx_ds_KeyInfo_s* x,int n); 279 void zx_ds_KeyInfo_DEL_KeyValue(struct zx_ds_KeyInfo_s* x, int n); 280 void zx_ds_KeyInfo_DEL_RetrievalMethod(struct zx_ds_KeyInfo_s* x, int n); 281 void zx_ds_KeyInfo_DEL_X509Data(struct zx_ds_KeyInfo_s* x, int n); 282 void zx_ds_KeyInfo_DEL_PGPData(struct zx_ds_KeyInfo_s* x, int n); 283 void zx_ds_KeyInfo_DEL_SPKIData(struct zx_ds_KeyInfo_s* x, int n); 284 void zx_ds_KeyInfo_DEL_MgmtData(struct zx_ds_KeyInfo_s* x,int n); 285 void zx_ds_KeyInfo_DEL_EncryptedKey(struct zx_ds_KeyInfo_s* x, int n); 286 287 void zx_ds_KeyInfo_REV_KeyName(struct zx_ds_KeyInfo_s* x); 288 void zx_ds_KeyInfo_REV_KeyValue(struct zx_ds_KeyInfo_s* x); 289 void zx_ds_KeyInfo_REV_RetrievalMethod(struct zx_ds_KeyInfo_s* x); 290 void zx_ds_KeyInfo_REV_X509Data(struct zx_ds_KeyInfo_s* x); 291 void zx_ds_KeyInfo_REV_PGPData(struct zx_ds_KeyInfo_s* x); 292 void zx_ds_KeyInfo_REV_SPKIData(struct zx_ds_KeyInfo_s* x); 293 void zx_ds_KeyInfo_REV_MgmtData(struct zx_ds_KeyInfo_s* x); 294 void zx_ds_KeyInfo_REV_EncryptedKey(struct zx_ds_KeyInfo_s* x); 295 296 #endif 297 /* -------------------------- ds_KeyValue -------------------------- */ 298 /* refby( zx_ds_KeyInfo_s zx_xenc_RecipientKeyInfo_s zx_xenc_OriginatorKeyInfo_s ) */ 299 #ifndef zx_ds_KeyValue_EXT 300 #define zx_ds_KeyValue_EXT 301 #endif 302 struct zx_ds_KeyValue_s { 303 ZX_ELEM_EXT 304 zx_ds_KeyValue_EXT 305 struct zx_ds_DSAKeyValue_s* DSAKeyValue; /* {0,1} nada */ 306 struct zx_ds_RSAKeyValue_s* RSAKeyValue; /* {0,1} nada */ 307 }; 308 309 #define zx_NEW_ds_KeyValue(c, father) (struct zx_ds_KeyValue_s*)zx_new_elem((c),(father),zx_ds_KeyValue_ELEM) 310 int zx_DEC_ATTR_ds_KeyValue(struct zx_ctx* c, struct zx_ds_KeyValue_s* x); 311 int zx_DEC_ELEM_ds_KeyValue(struct zx_ctx* c, struct zx_ds_KeyValue_s* x); 312 313 #ifdef ZX_ENA_AUX 314 struct zx_ds_KeyValue_s* zx_DEEP_CLONE_ds_KeyValue(struct zx_ctx* c, struct zx_ds_KeyValue_s* x, int dup_strs); 315 void zx_DUP_STRS_ds_KeyValue(struct zx_ctx* c, struct zx_ds_KeyValue_s* x); 316 int zx_WALK_SO_ds_KeyValue(struct zx_ctx* c, struct zx_ds_KeyValue_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 317 int zx_WALK_WO_ds_KeyValue(struct zx_ctx* c, struct zx_ds_KeyValue_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 318 #endif 319 320 #ifdef ZX_ENA_GETPUT 321 322 struct zx_ds_DSAKeyValue_s* zx_ds_KeyValue_GET_DSAKeyValue(struct zx_ds_KeyValue_s* x, int n); 323 struct zx_ds_RSAKeyValue_s* zx_ds_KeyValue_GET_RSAKeyValue(struct zx_ds_KeyValue_s* x, int n); 324 325 int zx_ds_KeyValue_NUM_DSAKeyValue(struct zx_ds_KeyValue_s* x); 326 int zx_ds_KeyValue_NUM_RSAKeyValue(struct zx_ds_KeyValue_s* x); 327 328 struct zx_ds_DSAKeyValue_s* zx_ds_KeyValue_POP_DSAKeyValue(struct zx_ds_KeyValue_s* x); 329 struct zx_ds_RSAKeyValue_s* zx_ds_KeyValue_POP_RSAKeyValue(struct zx_ds_KeyValue_s* x); 330 331 void zx_ds_KeyValue_PUSH_DSAKeyValue(struct zx_ds_KeyValue_s* x, struct zx_ds_DSAKeyValue_s* y); 332 void zx_ds_KeyValue_PUSH_RSAKeyValue(struct zx_ds_KeyValue_s* x, struct zx_ds_RSAKeyValue_s* y); 333 334 335 void zx_ds_KeyValue_PUT_DSAKeyValue(struct zx_ds_KeyValue_s* x, int n, struct zx_ds_DSAKeyValue_s* y); 336 void zx_ds_KeyValue_PUT_RSAKeyValue(struct zx_ds_KeyValue_s* x, int n, struct zx_ds_RSAKeyValue_s* y); 337 338 void zx_ds_KeyValue_ADD_DSAKeyValue(struct zx_ds_KeyValue_s* x, int n, struct zx_ds_DSAKeyValue_s* z); 339 void zx_ds_KeyValue_ADD_RSAKeyValue(struct zx_ds_KeyValue_s* x, int n, struct zx_ds_RSAKeyValue_s* z); 340 341 void zx_ds_KeyValue_DEL_DSAKeyValue(struct zx_ds_KeyValue_s* x, int n); 342 void zx_ds_KeyValue_DEL_RSAKeyValue(struct zx_ds_KeyValue_s* x, int n); 343 344 void zx_ds_KeyValue_REV_DSAKeyValue(struct zx_ds_KeyValue_s* x); 345 void zx_ds_KeyValue_REV_RSAKeyValue(struct zx_ds_KeyValue_s* x); 346 347 #endif 348 /* -------------------------- ds_Manifest -------------------------- */ 349 /* refby( ) */ 350 #ifndef zx_ds_Manifest_EXT 351 #define zx_ds_Manifest_EXT 352 #endif 353 struct zx_ds_Manifest_s { 354 ZX_ELEM_EXT 355 zx_ds_Manifest_EXT 356 struct zx_ds_Reference_s* Reference; /* {1,-1} nada */ 357 struct zx_attr_s* Id; /* {0,1} attribute xs:ID */ 358 }; 359 360 #define zx_NEW_ds_Manifest(c, father) (struct zx_ds_Manifest_s*)zx_new_elem((c),(father),zx_ds_Manifest_ELEM) 361 int zx_DEC_ATTR_ds_Manifest(struct zx_ctx* c, struct zx_ds_Manifest_s* x); 362 int zx_DEC_ELEM_ds_Manifest(struct zx_ctx* c, struct zx_ds_Manifest_s* x); 363 364 #ifdef ZX_ENA_AUX 365 struct zx_ds_Manifest_s* zx_DEEP_CLONE_ds_Manifest(struct zx_ctx* c, struct zx_ds_Manifest_s* x, int dup_strs); 366 void zx_DUP_STRS_ds_Manifest(struct zx_ctx* c, struct zx_ds_Manifest_s* x); 367 int zx_WALK_SO_ds_Manifest(struct zx_ctx* c, struct zx_ds_Manifest_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 368 int zx_WALK_WO_ds_Manifest(struct zx_ctx* c, struct zx_ds_Manifest_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 369 #endif 370 371 #ifdef ZX_ENA_GETPUT 372 struct zx_attr_s* zx_ds_Manifest_GET_Id(struct zx_ds_Manifest_s* x); 373 374 struct zx_ds_Reference_s* zx_ds_Manifest_GET_Reference(struct zx_ds_Manifest_s* x, int n); 375 376 int zx_ds_Manifest_NUM_Reference(struct zx_ds_Manifest_s* x); 377 378 struct zx_ds_Reference_s* zx_ds_Manifest_POP_Reference(struct zx_ds_Manifest_s* x); 379 380 void zx_ds_Manifest_PUSH_Reference(struct zx_ds_Manifest_s* x, struct zx_ds_Reference_s* y); 381 382 void zx_ds_Manifest_PUT_Id(struct zx_ds_Manifest_s* x, struct zx_attr_s* y); 383 384 void zx_ds_Manifest_PUT_Reference(struct zx_ds_Manifest_s* x, int n, struct zx_ds_Reference_s* y); 385 386 void zx_ds_Manifest_ADD_Reference(struct zx_ds_Manifest_s* x, int n, struct zx_ds_Reference_s* z); 387 388 void zx_ds_Manifest_DEL_Reference(struct zx_ds_Manifest_s* x, int n); 389 390 void zx_ds_Manifest_REV_Reference(struct zx_ds_Manifest_s* x); 391 392 #endif 393 /* -------------------------- ds_Object -------------------------- */ 394 /* refby( zx_ds_Signature_s ) */ 395 #ifndef zx_ds_Object_EXT 396 #define zx_ds_Object_EXT 397 #endif 398 struct zx_ds_Object_s { 399 ZX_ELEM_EXT 400 zx_ds_Object_EXT 401 struct zx_attr_s* Encoding; /* {0,1} attribute xs:anyURI */ 402 struct zx_attr_s* Id; /* {0,1} attribute xs:ID */ 403 struct zx_attr_s* MimeType; /* {0,1} attribute xs:string */ 404 }; 405 406 #define zx_NEW_ds_Object(c, father) (struct zx_ds_Object_s*)zx_new_elem((c),(father),zx_ds_Object_ELEM) 407 int zx_DEC_ATTR_ds_Object(struct zx_ctx* c, struct zx_ds_Object_s* x); 408 int zx_DEC_ELEM_ds_Object(struct zx_ctx* c, struct zx_ds_Object_s* x); 409 410 #ifdef ZX_ENA_AUX 411 struct zx_ds_Object_s* zx_DEEP_CLONE_ds_Object(struct zx_ctx* c, struct zx_ds_Object_s* x, int dup_strs); 412 void zx_DUP_STRS_ds_Object(struct zx_ctx* c, struct zx_ds_Object_s* x); 413 int zx_WALK_SO_ds_Object(struct zx_ctx* c, struct zx_ds_Object_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 414 int zx_WALK_WO_ds_Object(struct zx_ctx* c, struct zx_ds_Object_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 415 #endif 416 417 #ifdef ZX_ENA_GETPUT 418 struct zx_attr_s* zx_ds_Object_GET_Encoding(struct zx_ds_Object_s* x); 419 struct zx_attr_s* zx_ds_Object_GET_Id(struct zx_ds_Object_s* x); 420 struct zx_attr_s* zx_ds_Object_GET_MimeType(struct zx_ds_Object_s* x); 421 422 423 424 425 426 void zx_ds_Object_PUT_Encoding(struct zx_ds_Object_s* x, struct zx_attr_s* y); 427 void zx_ds_Object_PUT_Id(struct zx_ds_Object_s* x, struct zx_attr_s* y); 428 void zx_ds_Object_PUT_MimeType(struct zx_ds_Object_s* x, struct zx_attr_s* y); 429 430 431 432 433 434 #endif 435 /* -------------------------- ds_PGPData -------------------------- */ 436 /* refby( zx_ds_KeyInfo_s zx_xenc_RecipientKeyInfo_s zx_xenc_OriginatorKeyInfo_s ) */ 437 #ifndef zx_ds_PGPData_EXT 438 #define zx_ds_PGPData_EXT 439 #endif 440 struct zx_ds_PGPData_s { 441 ZX_ELEM_EXT 442 zx_ds_PGPData_EXT 443 struct zx_elem_s* PGPKeyID; /* {0,1} xs:base64Binary */ 444 struct zx_elem_s* PGPKeyPacket; /* {0,1} xs:base64Binary */ 445 }; 446 447 #define zx_NEW_ds_PGPData(c, father) (struct zx_ds_PGPData_s*)zx_new_elem((c),(father),zx_ds_PGPData_ELEM) 448 int zx_DEC_ATTR_ds_PGPData(struct zx_ctx* c, struct zx_ds_PGPData_s* x); 449 int zx_DEC_ELEM_ds_PGPData(struct zx_ctx* c, struct zx_ds_PGPData_s* x); 450 451 #ifdef ZX_ENA_AUX 452 struct zx_ds_PGPData_s* zx_DEEP_CLONE_ds_PGPData(struct zx_ctx* c, struct zx_ds_PGPData_s* x, int dup_strs); 453 void zx_DUP_STRS_ds_PGPData(struct zx_ctx* c, struct zx_ds_PGPData_s* x); 454 int zx_WALK_SO_ds_PGPData(struct zx_ctx* c, struct zx_ds_PGPData_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 455 int zx_WALK_WO_ds_PGPData(struct zx_ctx* c, struct zx_ds_PGPData_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 456 #endif 457 458 #ifdef ZX_ENA_GETPUT 459 460 struct zx_elem_s* zx_ds_PGPData_GET_PGPKeyID(struct zx_ds_PGPData_s* x, int n); 461 struct zx_elem_s* zx_ds_PGPData_GET_PGPKeyPacket(struct zx_ds_PGPData_s* x, int n); 462 463 int zx_ds_PGPData_NUM_PGPKeyID(struct zx_ds_PGPData_s* x); 464 int zx_ds_PGPData_NUM_PGPKeyPacket(struct zx_ds_PGPData_s* x); 465 466 struct zx_elem_s* zx_ds_PGPData_POP_PGPKeyID(struct zx_ds_PGPData_s* x); 467 struct zx_elem_s* zx_ds_PGPData_POP_PGPKeyPacket(struct zx_ds_PGPData_s* x); 468 469 void zx_ds_PGPData_PUSH_PGPKeyID(struct zx_ds_PGPData_s* x, struct zx_elem_s* y); 470 void zx_ds_PGPData_PUSH_PGPKeyPacket(struct zx_ds_PGPData_s* x, struct zx_elem_s* y); 471 472 473 void zx_ds_PGPData_PUT_PGPKeyID(struct zx_ds_PGPData_s* x, int n, struct zx_elem_s* y); 474 void zx_ds_PGPData_PUT_PGPKeyPacket(struct zx_ds_PGPData_s* x, int n, struct zx_elem_s* y); 475 476 void zx_ds_PGPData_ADD_PGPKeyID(struct zx_ds_PGPData_s* x, int n, struct zx_elem_s* z); 477 void zx_ds_PGPData_ADD_PGPKeyPacket(struct zx_ds_PGPData_s* x, int n, struct zx_elem_s* z); 478 479 void zx_ds_PGPData_DEL_PGPKeyID(struct zx_ds_PGPData_s* x,int n); 480 void zx_ds_PGPData_DEL_PGPKeyPacket(struct zx_ds_PGPData_s* x,int n); 481 482 void zx_ds_PGPData_REV_PGPKeyID(struct zx_ds_PGPData_s* x); 483 void zx_ds_PGPData_REV_PGPKeyPacket(struct zx_ds_PGPData_s* x); 484 485 #endif 486 /* -------------------------- ds_RSAKeyValue -------------------------- */ 487 /* refby( zx_ds_KeyValue_s ) */ 488 #ifndef zx_ds_RSAKeyValue_EXT 489 #define zx_ds_RSAKeyValue_EXT 490 #endif 491 struct zx_ds_RSAKeyValue_s { 492 ZX_ELEM_EXT 493 zx_ds_RSAKeyValue_EXT 494 struct zx_elem_s* Modulus; /* {1,1} xs:base64Binary */ 495 struct zx_elem_s* Exponent; /* {1,1} xs:base64Binary */ 496 }; 497 498 #define zx_NEW_ds_RSAKeyValue(c, father) (struct zx_ds_RSAKeyValue_s*)zx_new_elem((c),(father),zx_ds_RSAKeyValue_ELEM) 499 int zx_DEC_ATTR_ds_RSAKeyValue(struct zx_ctx* c, struct zx_ds_RSAKeyValue_s* x); 500 int zx_DEC_ELEM_ds_RSAKeyValue(struct zx_ctx* c, struct zx_ds_RSAKeyValue_s* x); 501 502 #ifdef ZX_ENA_AUX 503 struct zx_ds_RSAKeyValue_s* zx_DEEP_CLONE_ds_RSAKeyValue(struct zx_ctx* c, struct zx_ds_RSAKeyValue_s* x, int dup_strs); 504 void zx_DUP_STRS_ds_RSAKeyValue(struct zx_ctx* c, struct zx_ds_RSAKeyValue_s* x); 505 int zx_WALK_SO_ds_RSAKeyValue(struct zx_ctx* c, struct zx_ds_RSAKeyValue_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 506 int zx_WALK_WO_ds_RSAKeyValue(struct zx_ctx* c, struct zx_ds_RSAKeyValue_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 507 #endif 508 509 #ifdef ZX_ENA_GETPUT 510 511 struct zx_elem_s* zx_ds_RSAKeyValue_GET_Modulus(struct zx_ds_RSAKeyValue_s* x, int n); 512 struct zx_elem_s* zx_ds_RSAKeyValue_GET_Exponent(struct zx_ds_RSAKeyValue_s* x, int n); 513 514 int zx_ds_RSAKeyValue_NUM_Modulus(struct zx_ds_RSAKeyValue_s* x); 515 int zx_ds_RSAKeyValue_NUM_Exponent(struct zx_ds_RSAKeyValue_s* x); 516 517 struct zx_elem_s* zx_ds_RSAKeyValue_POP_Modulus(struct zx_ds_RSAKeyValue_s* x); 518 struct zx_elem_s* zx_ds_RSAKeyValue_POP_Exponent(struct zx_ds_RSAKeyValue_s* x); 519 520 void zx_ds_RSAKeyValue_PUSH_Modulus(struct zx_ds_RSAKeyValue_s* x, struct zx_elem_s* y); 521 void zx_ds_RSAKeyValue_PUSH_Exponent(struct zx_ds_RSAKeyValue_s* x, struct zx_elem_s* y); 522 523 524 void zx_ds_RSAKeyValue_PUT_Modulus(struct zx_ds_RSAKeyValue_s* x, int n, struct zx_elem_s* y); 525 void zx_ds_RSAKeyValue_PUT_Exponent(struct zx_ds_RSAKeyValue_s* x, int n, struct zx_elem_s* y); 526 527 void zx_ds_RSAKeyValue_ADD_Modulus(struct zx_ds_RSAKeyValue_s* x, int n, struct zx_elem_s* z); 528 void zx_ds_RSAKeyValue_ADD_Exponent(struct zx_ds_RSAKeyValue_s* x, int n, struct zx_elem_s* z); 529 530 void zx_ds_RSAKeyValue_DEL_Modulus(struct zx_ds_RSAKeyValue_s* x,int n); 531 void zx_ds_RSAKeyValue_DEL_Exponent(struct zx_ds_RSAKeyValue_s* x,int n); 532 533 void zx_ds_RSAKeyValue_REV_Modulus(struct zx_ds_RSAKeyValue_s* x); 534 void zx_ds_RSAKeyValue_REV_Exponent(struct zx_ds_RSAKeyValue_s* x); 535 536 #endif 537 /* -------------------------- ds_Reference -------------------------- */ 538 /* refby( zx_ds_SignedInfo_s zx_ds_Manifest_s ) */ 539 #ifndef zx_ds_Reference_EXT 540 #define zx_ds_Reference_EXT 541 #endif 542 struct zx_ds_Reference_s { 543 ZX_ELEM_EXT 544 zx_ds_Reference_EXT 545 struct zx_ds_Transforms_s* Transforms; /* {0,1} */ 546 struct zx_ds_DigestMethod_s* DigestMethod; /* {1,1} nada */ 547 struct zx_elem_s* DigestValue; /* {1,1} xs:base64Binary */ 548 struct zx_attr_s* Id; /* {0,1} attribute xs:ID */ 549 struct zx_attr_s* Type; /* {0,1} attribute wst:BinarySecretTypeEnum */ 550 struct zx_attr_s* URI; /* {0,1} attribute xs:anyURI */ 551 }; 552 553 #define zx_NEW_ds_Reference(c, father) (struct zx_ds_Reference_s*)zx_new_elem((c),(father),zx_ds_Reference_ELEM) 554 int zx_DEC_ATTR_ds_Reference(struct zx_ctx* c, struct zx_ds_Reference_s* x); 555 int zx_DEC_ELEM_ds_Reference(struct zx_ctx* c, struct zx_ds_Reference_s* x); 556 557 #ifdef ZX_ENA_AUX 558 struct zx_ds_Reference_s* zx_DEEP_CLONE_ds_Reference(struct zx_ctx* c, struct zx_ds_Reference_s* x, int dup_strs); 559 void zx_DUP_STRS_ds_Reference(struct zx_ctx* c, struct zx_ds_Reference_s* x); 560 int zx_WALK_SO_ds_Reference(struct zx_ctx* c, struct zx_ds_Reference_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 561 int zx_WALK_WO_ds_Reference(struct zx_ctx* c, struct zx_ds_Reference_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 562 #endif 563 564 #ifdef ZX_ENA_GETPUT 565 struct zx_attr_s* zx_ds_Reference_GET_Id(struct zx_ds_Reference_s* x); 566 struct zx_attr_s* zx_ds_Reference_GET_Type(struct zx_ds_Reference_s* x); 567 struct zx_attr_s* zx_ds_Reference_GET_URI(struct zx_ds_Reference_s* x); 568 569 struct zx_ds_Transforms_s* zx_ds_Reference_GET_Transforms(struct zx_ds_Reference_s* x, int n); 570 struct zx_ds_DigestMethod_s* zx_ds_Reference_GET_DigestMethod(struct zx_ds_Reference_s* x, int n); 571 struct zx_elem_s* zx_ds_Reference_GET_DigestValue(struct zx_ds_Reference_s* x, int n); 572 573 int zx_ds_Reference_NUM_Transforms(struct zx_ds_Reference_s* x); 574 int zx_ds_Reference_NUM_DigestMethod(struct zx_ds_Reference_s* x); 575 int zx_ds_Reference_NUM_DigestValue(struct zx_ds_Reference_s* x); 576 577 struct zx_ds_Transforms_s* zx_ds_Reference_POP_Transforms(struct zx_ds_Reference_s* x); 578 struct zx_ds_DigestMethod_s* zx_ds_Reference_POP_DigestMethod(struct zx_ds_Reference_s* x); 579 struct zx_elem_s* zx_ds_Reference_POP_DigestValue(struct zx_ds_Reference_s* x); 580 581 void zx_ds_Reference_PUSH_Transforms(struct zx_ds_Reference_s* x, struct zx_ds_Transforms_s* y); 582 void zx_ds_Reference_PUSH_DigestMethod(struct zx_ds_Reference_s* x, struct zx_ds_DigestMethod_s* y); 583 void zx_ds_Reference_PUSH_DigestValue(struct zx_ds_Reference_s* x, struct zx_elem_s* y); 584 585 void zx_ds_Reference_PUT_Id(struct zx_ds_Reference_s* x, struct zx_attr_s* y); 586 void zx_ds_Reference_PUT_Type(struct zx_ds_Reference_s* x, struct zx_attr_s* y); 587 void zx_ds_Reference_PUT_URI(struct zx_ds_Reference_s* x, struct zx_attr_s* y); 588 589 void zx_ds_Reference_PUT_Transforms(struct zx_ds_Reference_s* x, int n, struct zx_ds_Transforms_s* y); 590 void zx_ds_Reference_PUT_DigestMethod(struct zx_ds_Reference_s* x, int n, struct zx_ds_DigestMethod_s* y); 591 void zx_ds_Reference_PUT_DigestValue(struct zx_ds_Reference_s* x, int n, struct zx_elem_s* y); 592 593 void zx_ds_Reference_ADD_Transforms(struct zx_ds_Reference_s* x, int n, struct zx_ds_Transforms_s* z); 594 void zx_ds_Reference_ADD_DigestMethod(struct zx_ds_Reference_s* x, int n, struct zx_ds_DigestMethod_s* z); 595 void zx_ds_Reference_ADD_DigestValue(struct zx_ds_Reference_s* x, int n, struct zx_elem_s* z); 596 597 void zx_ds_Reference_DEL_Transforms(struct zx_ds_Reference_s* x, int n); 598 void zx_ds_Reference_DEL_DigestMethod(struct zx_ds_Reference_s* x, int n); 599 void zx_ds_Reference_DEL_DigestValue(struct zx_ds_Reference_s* x,int n); 600 601 void zx_ds_Reference_REV_Transforms(struct zx_ds_Reference_s* x); 602 void zx_ds_Reference_REV_DigestMethod(struct zx_ds_Reference_s* x); 603 void zx_ds_Reference_REV_DigestValue(struct zx_ds_Reference_s* x); 604 605 #endif 606 /* -------------------------- ds_RetrievalMethod -------------------------- */ 607 /* refby( zx_ds_KeyInfo_s zx_xenc_RecipientKeyInfo_s zx_xenc_OriginatorKeyInfo_s ) */ 608 #ifndef zx_ds_RetrievalMethod_EXT 609 #define zx_ds_RetrievalMethod_EXT 610 #endif 611 struct zx_ds_RetrievalMethod_s { 612 ZX_ELEM_EXT 613 zx_ds_RetrievalMethod_EXT 614 struct zx_ds_Transforms_s* Transforms; /* {0,1} */ 615 struct zx_attr_s* Type; /* {0,1} attribute wst:BinarySecretTypeEnum */ 616 struct zx_attr_s* URI; /* {0,1} attribute xs:anyURI */ 617 }; 618 619 #define zx_NEW_ds_RetrievalMethod(c, father) (struct zx_ds_RetrievalMethod_s*)zx_new_elem((c),(father),zx_ds_RetrievalMethod_ELEM) 620 int zx_DEC_ATTR_ds_RetrievalMethod(struct zx_ctx* c, struct zx_ds_RetrievalMethod_s* x); 621 int zx_DEC_ELEM_ds_RetrievalMethod(struct zx_ctx* c, struct zx_ds_RetrievalMethod_s* x); 622 623 #ifdef ZX_ENA_AUX 624 struct zx_ds_RetrievalMethod_s* zx_DEEP_CLONE_ds_RetrievalMethod(struct zx_ctx* c, struct zx_ds_RetrievalMethod_s* x, int dup_strs); 625 void zx_DUP_STRS_ds_RetrievalMethod(struct zx_ctx* c, struct zx_ds_RetrievalMethod_s* x); 626 int zx_WALK_SO_ds_RetrievalMethod(struct zx_ctx* c, struct zx_ds_RetrievalMethod_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 627 int zx_WALK_WO_ds_RetrievalMethod(struct zx_ctx* c, struct zx_ds_RetrievalMethod_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 628 #endif 629 630 #ifdef ZX_ENA_GETPUT 631 struct zx_attr_s* zx_ds_RetrievalMethod_GET_Type(struct zx_ds_RetrievalMethod_s* x); 632 struct zx_attr_s* zx_ds_RetrievalMethod_GET_URI(struct zx_ds_RetrievalMethod_s* x); 633 634 struct zx_ds_Transforms_s* zx_ds_RetrievalMethod_GET_Transforms(struct zx_ds_RetrievalMethod_s* x, int n); 635 636 int zx_ds_RetrievalMethod_NUM_Transforms(struct zx_ds_RetrievalMethod_s* x); 637 638 struct zx_ds_Transforms_s* zx_ds_RetrievalMethod_POP_Transforms(struct zx_ds_RetrievalMethod_s* x); 639 640 void zx_ds_RetrievalMethod_PUSH_Transforms(struct zx_ds_RetrievalMethod_s* x, struct zx_ds_Transforms_s* y); 641 642 void zx_ds_RetrievalMethod_PUT_Type(struct zx_ds_RetrievalMethod_s* x, struct zx_attr_s* y); 643 void zx_ds_RetrievalMethod_PUT_URI(struct zx_ds_RetrievalMethod_s* x, struct zx_attr_s* y); 644 645 void zx_ds_RetrievalMethod_PUT_Transforms(struct zx_ds_RetrievalMethod_s* x, int n, struct zx_ds_Transforms_s* y); 646 647 void zx_ds_RetrievalMethod_ADD_Transforms(struct zx_ds_RetrievalMethod_s* x, int n, struct zx_ds_Transforms_s* z); 648 649 void zx_ds_RetrievalMethod_DEL_Transforms(struct zx_ds_RetrievalMethod_s* x, int n); 650 651 void zx_ds_RetrievalMethod_REV_Transforms(struct zx_ds_RetrievalMethod_s* x); 652 653 #endif 654 /* -------------------------- ds_SPKIData -------------------------- */ 655 /* refby( zx_ds_KeyInfo_s zx_xenc_RecipientKeyInfo_s zx_xenc_OriginatorKeyInfo_s ) */ 656 #ifndef zx_ds_SPKIData_EXT 657 #define zx_ds_SPKIData_EXT 658 #endif 659 struct zx_ds_SPKIData_s { 660 ZX_ELEM_EXT 661 zx_ds_SPKIData_EXT 662 struct zx_elem_s* SPKISexp; /* {1,1} xs:base64Binary */ 663 }; 664 665 #define zx_NEW_ds_SPKIData(c, father) (struct zx_ds_SPKIData_s*)zx_new_elem((c),(father),zx_ds_SPKIData_ELEM) 666 int zx_DEC_ATTR_ds_SPKIData(struct zx_ctx* c, struct zx_ds_SPKIData_s* x); 667 int zx_DEC_ELEM_ds_SPKIData(struct zx_ctx* c, struct zx_ds_SPKIData_s* x); 668 669 #ifdef ZX_ENA_AUX 670 struct zx_ds_SPKIData_s* zx_DEEP_CLONE_ds_SPKIData(struct zx_ctx* c, struct zx_ds_SPKIData_s* x, int dup_strs); 671 void zx_DUP_STRS_ds_SPKIData(struct zx_ctx* c, struct zx_ds_SPKIData_s* x); 672 int zx_WALK_SO_ds_SPKIData(struct zx_ctx* c, struct zx_ds_SPKIData_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 673 int zx_WALK_WO_ds_SPKIData(struct zx_ctx* c, struct zx_ds_SPKIData_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 674 #endif 675 676 #ifdef ZX_ENA_GETPUT 677 678 struct zx_elem_s* zx_ds_SPKIData_GET_SPKISexp(struct zx_ds_SPKIData_s* x, int n); 679 680 int zx_ds_SPKIData_NUM_SPKISexp(struct zx_ds_SPKIData_s* x); 681 682 struct zx_elem_s* zx_ds_SPKIData_POP_SPKISexp(struct zx_ds_SPKIData_s* x); 683 684 void zx_ds_SPKIData_PUSH_SPKISexp(struct zx_ds_SPKIData_s* x, struct zx_elem_s* y); 685 686 687 void zx_ds_SPKIData_PUT_SPKISexp(struct zx_ds_SPKIData_s* x, int n, struct zx_elem_s* y); 688 689 void zx_ds_SPKIData_ADD_SPKISexp(struct zx_ds_SPKIData_s* x, int n, struct zx_elem_s* z); 690 691 void zx_ds_SPKIData_DEL_SPKISexp(struct zx_ds_SPKIData_s* x,int n); 692 693 void zx_ds_SPKIData_REV_SPKISexp(struct zx_ds_SPKIData_s* x); 694 695 #endif 696 /* -------------------------- ds_Signature -------------------------- */ 697 /* refby( zx_md_RoleDescriptor_s zx_m20_AffiliationDescriptor_s zx_ff12_LogoutResponse_s zx_sp_ManageNameIDRequest_s zx_is12_InteractionStatement_s zx_ff12_Assertion_s zx_ff12_NameIdentifierMappingResponse_s zx_md_AttributeAuthorityDescriptor_s zx_is_InteractionStatement_s zx_sp_AssertionIDRequest_s zx_sp_LogoutRequest_s zx_ff12_LogoutRequest_s zx_md_EntityDescriptor_s zx_m20_EntityDescriptor_s zx_m20_SPDescriptor_s zx_wsse_Security_s zx_sp_SubjectQuery_s zx_ff12_NameIdentifierMappingRequest_s zx_sp_NameIDMappingResponse_s zx_sp_AuthnRequest_s zx_md_PDPDescriptor_s zx_ff12_FederationTerminationNotification_s zx_sp_NameIDMappingRequest_s zx_sp11_Request_s zx_ff12_AuthnRequest_s zx_sa_Assertion_s zx_md_AuthnAuthorityDescriptor_s zx_sp_ArtifactResolve_s zx_ff12_AuthnResponse_s zx_xaspcd1_XACMLAuthzDecisionQuery_s zx_sp_LogoutResponse_s zx_sp_AuthnQuery_s zx_md_EntitiesDescriptor_s zx_xasp_XACMLPolicyQuery_s zx_sp_Response_s zx_xaspcd1_XACMLPolicyQuery_s zx_sp11_Response_s zx_sp_AuthzDecisionQuery_s zx_md_AffiliationDescriptor_s zx_sp_AttributeQuery_s zx_sa11_Assertion_s zx_md_IDPSSODescriptor_s zx_xasp_XACMLAuthzDecisionQuery_s zx_md_SPSSODescriptor_s zx_prov_ProvisioningHandle_s zx_prov_PMDescriptor_s zx_ff12_RegisterNameIdentifierResponse_s zx_sp_ManageNameIDResponse_s zx_m20_IDPDescriptor_s zx_sp_ArtifactResponse_s zx_sec12_ProxyInfoConfirmationData_s zx_ff12_RegisterNameIdentifierRequest_s ) */ 698 #ifndef zx_ds_Signature_EXT 699 #define zx_ds_Signature_EXT 700 #endif 701 struct zx_ds_Signature_s { 702 ZX_ELEM_EXT 703 zx_ds_Signature_EXT 704 struct zx_ds_SignedInfo_s* SignedInfo; /* {1,1} nada */ 705 struct zx_ds_SignatureValue_s* SignatureValue; /* {1,1} nada */ 706 struct zx_ds_KeyInfo_s* KeyInfo; /* {0,1} nada */ 707 struct zx_ds_Object_s* Object; /* {0,-1} nada */ 708 struct zx_attr_s* Id; /* {0,1} attribute xs:ID */ 709 }; 710 711 #define zx_NEW_ds_Signature(c, father) (struct zx_ds_Signature_s*)zx_new_elem((c),(father),zx_ds_Signature_ELEM) 712 int zx_DEC_ATTR_ds_Signature(struct zx_ctx* c, struct zx_ds_Signature_s* x); 713 int zx_DEC_ELEM_ds_Signature(struct zx_ctx* c, struct zx_ds_Signature_s* x); 714 715 #ifdef ZX_ENA_AUX 716 struct zx_ds_Signature_s* zx_DEEP_CLONE_ds_Signature(struct zx_ctx* c, struct zx_ds_Signature_s* x, int dup_strs); 717 void zx_DUP_STRS_ds_Signature(struct zx_ctx* c, struct zx_ds_Signature_s* x); 718 int zx_WALK_SO_ds_Signature(struct zx_ctx* c, struct zx_ds_Signature_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 719 int zx_WALK_WO_ds_Signature(struct zx_ctx* c, struct zx_ds_Signature_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 720 #endif 721 722 #ifdef ZX_ENA_GETPUT 723 struct zx_attr_s* zx_ds_Signature_GET_Id(struct zx_ds_Signature_s* x); 724 725 struct zx_ds_SignedInfo_s* zx_ds_Signature_GET_SignedInfo(struct zx_ds_Signature_s* x, int n); 726 struct zx_ds_SignatureValue_s* zx_ds_Signature_GET_SignatureValue(struct zx_ds_Signature_s* x, int n); 727 struct zx_ds_KeyInfo_s* zx_ds_Signature_GET_KeyInfo(struct zx_ds_Signature_s* x, int n); 728 struct zx_ds_Object_s* zx_ds_Signature_GET_Object(struct zx_ds_Signature_s* x, int n); 729 730 int zx_ds_Signature_NUM_SignedInfo(struct zx_ds_Signature_s* x); 731 int zx_ds_Signature_NUM_SignatureValue(struct zx_ds_Signature_s* x); 732 int zx_ds_Signature_NUM_KeyInfo(struct zx_ds_Signature_s* x); 733 int zx_ds_Signature_NUM_Object(struct zx_ds_Signature_s* x); 734 735 struct zx_ds_SignedInfo_s* zx_ds_Signature_POP_SignedInfo(struct zx_ds_Signature_s* x); 736 struct zx_ds_SignatureValue_s* zx_ds_Signature_POP_SignatureValue(struct zx_ds_Signature_s* x); 737 struct zx_ds_KeyInfo_s* zx_ds_Signature_POP_KeyInfo(struct zx_ds_Signature_s* x); 738 struct zx_ds_Object_s* zx_ds_Signature_POP_Object(struct zx_ds_Signature_s* x); 739 740 void zx_ds_Signature_PUSH_SignedInfo(struct zx_ds_Signature_s* x, struct zx_ds_SignedInfo_s* y); 741 void zx_ds_Signature_PUSH_SignatureValue(struct zx_ds_Signature_s* x, struct zx_ds_SignatureValue_s* y); 742 void zx_ds_Signature_PUSH_KeyInfo(struct zx_ds_Signature_s* x, struct zx_ds_KeyInfo_s* y); 743 void zx_ds_Signature_PUSH_Object(struct zx_ds_Signature_s* x, struct zx_ds_Object_s* y); 744 745 void zx_ds_Signature_PUT_Id(struct zx_ds_Signature_s* x, struct zx_attr_s* y); 746 747 void zx_ds_Signature_PUT_SignedInfo(struct zx_ds_Signature_s* x, int n, struct zx_ds_SignedInfo_s* y); 748 void zx_ds_Signature_PUT_SignatureValue(struct zx_ds_Signature_s* x, int n, struct zx_ds_SignatureValue_s* y); 749 void zx_ds_Signature_PUT_KeyInfo(struct zx_ds_Signature_s* x, int n, struct zx_ds_KeyInfo_s* y); 750 void zx_ds_Signature_PUT_Object(struct zx_ds_Signature_s* x, int n, struct zx_ds_Object_s* y); 751 752 void zx_ds_Signature_ADD_SignedInfo(struct zx_ds_Signature_s* x, int n, struct zx_ds_SignedInfo_s* z); 753 void zx_ds_Signature_ADD_SignatureValue(struct zx_ds_Signature_s* x, int n, struct zx_ds_SignatureValue_s* z); 754 void zx_ds_Signature_ADD_KeyInfo(struct zx_ds_Signature_s* x, int n, struct zx_ds_KeyInfo_s* z); 755 void zx_ds_Signature_ADD_Object(struct zx_ds_Signature_s* x, int n, struct zx_ds_Object_s* z); 756 757 void zx_ds_Signature_DEL_SignedInfo(struct zx_ds_Signature_s* x, int n); 758 void zx_ds_Signature_DEL_SignatureValue(struct zx_ds_Signature_s* x, int n); 759 void zx_ds_Signature_DEL_KeyInfo(struct zx_ds_Signature_s* x, int n); 760 void zx_ds_Signature_DEL_Object(struct zx_ds_Signature_s* x, int n); 761 762 void zx_ds_Signature_REV_SignedInfo(struct zx_ds_Signature_s* x); 763 void zx_ds_Signature_REV_SignatureValue(struct zx_ds_Signature_s* x); 764 void zx_ds_Signature_REV_KeyInfo(struct zx_ds_Signature_s* x); 765 void zx_ds_Signature_REV_Object(struct zx_ds_Signature_s* x); 766 767 #endif 768 /* -------------------------- ds_SignatureMethod -------------------------- */ 769 /* refby( zx_ds_SignedInfo_s ) */ 770 #ifndef zx_ds_SignatureMethod_EXT 771 #define zx_ds_SignatureMethod_EXT 772 #endif 773 struct zx_ds_SignatureMethod_s { 774 ZX_ELEM_EXT 775 zx_ds_SignatureMethod_EXT 776 struct zx_elem_s* HMACOutputLength; /* {0,1} xs:integer */ 777 struct zx_attr_s* Algorithm; /* {1,1} attribute xs:anyURI */ 778 }; 779 780 #define zx_NEW_ds_SignatureMethod(c, father) (struct zx_ds_SignatureMethod_s*)zx_new_elem((c),(father),zx_ds_SignatureMethod_ELEM) 781 int zx_DEC_ATTR_ds_SignatureMethod(struct zx_ctx* c, struct zx_ds_SignatureMethod_s* x); 782 int zx_DEC_ELEM_ds_SignatureMethod(struct zx_ctx* c, struct zx_ds_SignatureMethod_s* x); 783 784 #ifdef ZX_ENA_AUX 785 struct zx_ds_SignatureMethod_s* zx_DEEP_CLONE_ds_SignatureMethod(struct zx_ctx* c, struct zx_ds_SignatureMethod_s* x, int dup_strs); 786 void zx_DUP_STRS_ds_SignatureMethod(struct zx_ctx* c, struct zx_ds_SignatureMethod_s* x); 787 int zx_WALK_SO_ds_SignatureMethod(struct zx_ctx* c, struct zx_ds_SignatureMethod_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 788 int zx_WALK_WO_ds_SignatureMethod(struct zx_ctx* c, struct zx_ds_SignatureMethod_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 789 #endif 790 791 #ifdef ZX_ENA_GETPUT 792 struct zx_attr_s* zx_ds_SignatureMethod_GET_Algorithm(struct zx_ds_SignatureMethod_s* x); 793 794 struct zx_elem_s* zx_ds_SignatureMethod_GET_HMACOutputLength(struct zx_ds_SignatureMethod_s* x, int n); 795 796 int zx_ds_SignatureMethod_NUM_HMACOutputLength(struct zx_ds_SignatureMethod_s* x); 797 798 struct zx_elem_s* zx_ds_SignatureMethod_POP_HMACOutputLength(struct zx_ds_SignatureMethod_s* x); 799 800 void zx_ds_SignatureMethod_PUSH_HMACOutputLength(struct zx_ds_SignatureMethod_s* x, struct zx_elem_s* y); 801 802 void zx_ds_SignatureMethod_PUT_Algorithm(struct zx_ds_SignatureMethod_s* x, struct zx_attr_s* y); 803 804 void zx_ds_SignatureMethod_PUT_HMACOutputLength(struct zx_ds_SignatureMethod_s* x, int n, struct zx_elem_s* y); 805 806 void zx_ds_SignatureMethod_ADD_HMACOutputLength(struct zx_ds_SignatureMethod_s* x, int n, struct zx_elem_s* z); 807 808 void zx_ds_SignatureMethod_DEL_HMACOutputLength(struct zx_ds_SignatureMethod_s* x,int n); 809 810 void zx_ds_SignatureMethod_REV_HMACOutputLength(struct zx_ds_SignatureMethod_s* x); 811 812 #endif 813 /* -------------------------- ds_SignatureProperties -------------------------- */ 814 /* refby( ) */ 815 #ifndef zx_ds_SignatureProperties_EXT 816 #define zx_ds_SignatureProperties_EXT 817 #endif 818 struct zx_ds_SignatureProperties_s { 819 ZX_ELEM_EXT 820 zx_ds_SignatureProperties_EXT 821 struct zx_ds_SignatureProperty_s* SignatureProperty; /* {1,-1} nada */ 822 struct zx_attr_s* Id; /* {0,1} attribute xs:ID */ 823 }; 824 825 #define zx_NEW_ds_SignatureProperties(c, father) (struct zx_ds_SignatureProperties_s*)zx_new_elem((c),(father),zx_ds_SignatureProperties_ELEM) 826 int zx_DEC_ATTR_ds_SignatureProperties(struct zx_ctx* c, struct zx_ds_SignatureProperties_s* x); 827 int zx_DEC_ELEM_ds_SignatureProperties(struct zx_ctx* c, struct zx_ds_SignatureProperties_s* x); 828 829 #ifdef ZX_ENA_AUX 830 struct zx_ds_SignatureProperties_s* zx_DEEP_CLONE_ds_SignatureProperties(struct zx_ctx* c, struct zx_ds_SignatureProperties_s* x, int dup_strs); 831 void zx_DUP_STRS_ds_SignatureProperties(struct zx_ctx* c, struct zx_ds_SignatureProperties_s* x); 832 int zx_WALK_SO_ds_SignatureProperties(struct zx_ctx* c, struct zx_ds_SignatureProperties_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 833 int zx_WALK_WO_ds_SignatureProperties(struct zx_ctx* c, struct zx_ds_SignatureProperties_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 834 #endif 835 836 #ifdef ZX_ENA_GETPUT 837 struct zx_attr_s* zx_ds_SignatureProperties_GET_Id(struct zx_ds_SignatureProperties_s* x); 838 839 struct zx_ds_SignatureProperty_s* zx_ds_SignatureProperties_GET_SignatureProperty(struct zx_ds_SignatureProperties_s* x, int n); 840 841 int zx_ds_SignatureProperties_NUM_SignatureProperty(struct zx_ds_SignatureProperties_s* x); 842 843 struct zx_ds_SignatureProperty_s* zx_ds_SignatureProperties_POP_SignatureProperty(struct zx_ds_SignatureProperties_s* x); 844 845 void zx_ds_SignatureProperties_PUSH_SignatureProperty(struct zx_ds_SignatureProperties_s* x, struct zx_ds_SignatureProperty_s* y); 846 847 void zx_ds_SignatureProperties_PUT_Id(struct zx_ds_SignatureProperties_s* x, struct zx_attr_s* y); 848 849 void zx_ds_SignatureProperties_PUT_SignatureProperty(struct zx_ds_SignatureProperties_s* x, int n, struct zx_ds_SignatureProperty_s* y); 850 851 void zx_ds_SignatureProperties_ADD_SignatureProperty(struct zx_ds_SignatureProperties_s* x, int n, struct zx_ds_SignatureProperty_s* z); 852 853 void zx_ds_SignatureProperties_DEL_SignatureProperty(struct zx_ds_SignatureProperties_s* x, int n); 854 855 void zx_ds_SignatureProperties_REV_SignatureProperty(struct zx_ds_SignatureProperties_s* x); 856 857 #endif 858 /* -------------------------- ds_SignatureProperty -------------------------- */ 859 /* refby( zx_ds_SignatureProperties_s ) */ 860 #ifndef zx_ds_SignatureProperty_EXT 861 #define zx_ds_SignatureProperty_EXT 862 #endif 863 struct zx_ds_SignatureProperty_s { 864 ZX_ELEM_EXT 865 zx_ds_SignatureProperty_EXT 866 struct zx_attr_s* Id; /* {0,1} attribute xs:ID */ 867 struct zx_attr_s* Target; /* {1,1} attribute xs:anyURI */ 868 }; 869 870 #define zx_NEW_ds_SignatureProperty(c, father) (struct zx_ds_SignatureProperty_s*)zx_new_elem((c),(father),zx_ds_SignatureProperty_ELEM) 871 int zx_DEC_ATTR_ds_SignatureProperty(struct zx_ctx* c, struct zx_ds_SignatureProperty_s* x); 872 int zx_DEC_ELEM_ds_SignatureProperty(struct zx_ctx* c, struct zx_ds_SignatureProperty_s* x); 873 874 #ifdef ZX_ENA_AUX 875 struct zx_ds_SignatureProperty_s* zx_DEEP_CLONE_ds_SignatureProperty(struct zx_ctx* c, struct zx_ds_SignatureProperty_s* x, int dup_strs); 876 void zx_DUP_STRS_ds_SignatureProperty(struct zx_ctx* c, struct zx_ds_SignatureProperty_s* x); 877 int zx_WALK_SO_ds_SignatureProperty(struct zx_ctx* c, struct zx_ds_SignatureProperty_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 878 int zx_WALK_WO_ds_SignatureProperty(struct zx_ctx* c, struct zx_ds_SignatureProperty_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 879 #endif 880 881 #ifdef ZX_ENA_GETPUT 882 struct zx_attr_s* zx_ds_SignatureProperty_GET_Id(struct zx_ds_SignatureProperty_s* x); 883 struct zx_attr_s* zx_ds_SignatureProperty_GET_Target(struct zx_ds_SignatureProperty_s* x); 884 885 886 887 888 889 void zx_ds_SignatureProperty_PUT_Id(struct zx_ds_SignatureProperty_s* x, struct zx_attr_s* y); 890 void zx_ds_SignatureProperty_PUT_Target(struct zx_ds_SignatureProperty_s* x, struct zx_attr_s* y); 891 892 893 894 895 896 #endif 897 /* -------------------------- ds_SignatureValue -------------------------- */ 898 /* refby( zx_ds_Signature_s ) */ 899 #ifndef zx_ds_SignatureValue_EXT 900 #define zx_ds_SignatureValue_EXT 901 #endif 902 struct zx_ds_SignatureValue_s { 903 ZX_ELEM_EXT 904 zx_ds_SignatureValue_EXT 905 struct zx_attr_s* Id; /* {0,1} attribute xs:ID */ 906 }; 907 908 #define zx_NEW_ds_SignatureValue(c, father) (struct zx_ds_SignatureValue_s*)zx_new_elem((c),(father),zx_ds_SignatureValue_ELEM) 909 int zx_DEC_ATTR_ds_SignatureValue(struct zx_ctx* c, struct zx_ds_SignatureValue_s* x); 910 int zx_DEC_ELEM_ds_SignatureValue(struct zx_ctx* c, struct zx_ds_SignatureValue_s* x); 911 912 #ifdef ZX_ENA_AUX 913 struct zx_ds_SignatureValue_s* zx_DEEP_CLONE_ds_SignatureValue(struct zx_ctx* c, struct zx_ds_SignatureValue_s* x, int dup_strs); 914 void zx_DUP_STRS_ds_SignatureValue(struct zx_ctx* c, struct zx_ds_SignatureValue_s* x); 915 int zx_WALK_SO_ds_SignatureValue(struct zx_ctx* c, struct zx_ds_SignatureValue_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 916 int zx_WALK_WO_ds_SignatureValue(struct zx_ctx* c, struct zx_ds_SignatureValue_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 917 #endif 918 919 #ifdef ZX_ENA_GETPUT 920 struct zx_attr_s* zx_ds_SignatureValue_GET_Id(struct zx_ds_SignatureValue_s* x); 921 922 923 924 925 926 void zx_ds_SignatureValue_PUT_Id(struct zx_ds_SignatureValue_s* x, struct zx_attr_s* y); 927 928 929 930 931 932 #endif 933 /* -------------------------- ds_SignedInfo -------------------------- */ 934 /* refby( zx_ds_Signature_s ) */ 935 #ifndef zx_ds_SignedInfo_EXT 936 #define zx_ds_SignedInfo_EXT 937 #endif 938 struct zx_ds_SignedInfo_s { 939 ZX_ELEM_EXT 940 zx_ds_SignedInfo_EXT 941 struct zx_ds_CanonicalizationMethod_s* CanonicalizationMethod; /* {1,1} nada */ 942 struct zx_ds_SignatureMethod_s* SignatureMethod; /* {1,1} nada */ 943 struct zx_ds_Reference_s* Reference; /* {1,-1} nada */ 944 struct zx_attr_s* Id; /* {0,1} attribute xs:ID */ 945 }; 946 947 #define zx_NEW_ds_SignedInfo(c, father) (struct zx_ds_SignedInfo_s*)zx_new_elem((c),(father),zx_ds_SignedInfo_ELEM) 948 int zx_DEC_ATTR_ds_SignedInfo(struct zx_ctx* c, struct zx_ds_SignedInfo_s* x); 949 int zx_DEC_ELEM_ds_SignedInfo(struct zx_ctx* c, struct zx_ds_SignedInfo_s* x); 950 951 #ifdef ZX_ENA_AUX 952 struct zx_ds_SignedInfo_s* zx_DEEP_CLONE_ds_SignedInfo(struct zx_ctx* c, struct zx_ds_SignedInfo_s* x, int dup_strs); 953 void zx_DUP_STRS_ds_SignedInfo(struct zx_ctx* c, struct zx_ds_SignedInfo_s* x); 954 int zx_WALK_SO_ds_SignedInfo(struct zx_ctx* c, struct zx_ds_SignedInfo_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 955 int zx_WALK_WO_ds_SignedInfo(struct zx_ctx* c, struct zx_ds_SignedInfo_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 956 #endif 957 958 #ifdef ZX_ENA_GETPUT 959 struct zx_attr_s* zx_ds_SignedInfo_GET_Id(struct zx_ds_SignedInfo_s* x); 960 961 struct zx_ds_CanonicalizationMethod_s* zx_ds_SignedInfo_GET_CanonicalizationMethod(struct zx_ds_SignedInfo_s* x, int n); 962 struct zx_ds_SignatureMethod_s* zx_ds_SignedInfo_GET_SignatureMethod(struct zx_ds_SignedInfo_s* x, int n); 963 struct zx_ds_Reference_s* zx_ds_SignedInfo_GET_Reference(struct zx_ds_SignedInfo_s* x, int n); 964 965 int zx_ds_SignedInfo_NUM_CanonicalizationMethod(struct zx_ds_SignedInfo_s* x); 966 int zx_ds_SignedInfo_NUM_SignatureMethod(struct zx_ds_SignedInfo_s* x); 967 int zx_ds_SignedInfo_NUM_Reference(struct zx_ds_SignedInfo_s* x); 968 969 struct zx_ds_CanonicalizationMethod_s* zx_ds_SignedInfo_POP_CanonicalizationMethod(struct zx_ds_SignedInfo_s* x); 970 struct zx_ds_SignatureMethod_s* zx_ds_SignedInfo_POP_SignatureMethod(struct zx_ds_SignedInfo_s* x); 971 struct zx_ds_Reference_s* zx_ds_SignedInfo_POP_Reference(struct zx_ds_SignedInfo_s* x); 972 973 void zx_ds_SignedInfo_PUSH_CanonicalizationMethod(struct zx_ds_SignedInfo_s* x, struct zx_ds_CanonicalizationMethod_s* y); 974 void zx_ds_SignedInfo_PUSH_SignatureMethod(struct zx_ds_SignedInfo_s* x, struct zx_ds_SignatureMethod_s* y); 975 void zx_ds_SignedInfo_PUSH_Reference(struct zx_ds_SignedInfo_s* x, struct zx_ds_Reference_s* y); 976 977 void zx_ds_SignedInfo_PUT_Id(struct zx_ds_SignedInfo_s* x, struct zx_attr_s* y); 978 979 void zx_ds_SignedInfo_PUT_CanonicalizationMethod(struct zx_ds_SignedInfo_s* x, int n, struct zx_ds_CanonicalizationMethod_s* y); 980 void zx_ds_SignedInfo_PUT_SignatureMethod(struct zx_ds_SignedInfo_s* x, int n, struct zx_ds_SignatureMethod_s* y); 981 void zx_ds_SignedInfo_PUT_Reference(struct zx_ds_SignedInfo_s* x, int n, struct zx_ds_Reference_s* y); 982 983 void zx_ds_SignedInfo_ADD_CanonicalizationMethod(struct zx_ds_SignedInfo_s* x, int n, struct zx_ds_CanonicalizationMethod_s* z); 984 void zx_ds_SignedInfo_ADD_SignatureMethod(struct zx_ds_SignedInfo_s* x, int n, struct zx_ds_SignatureMethod_s* z); 985 void zx_ds_SignedInfo_ADD_Reference(struct zx_ds_SignedInfo_s* x, int n, struct zx_ds_Reference_s* z); 986 987 void zx_ds_SignedInfo_DEL_CanonicalizationMethod(struct zx_ds_SignedInfo_s* x, int n); 988 void zx_ds_SignedInfo_DEL_SignatureMethod(struct zx_ds_SignedInfo_s* x, int n); 989 void zx_ds_SignedInfo_DEL_Reference(struct zx_ds_SignedInfo_s* x, int n); 990 991 void zx_ds_SignedInfo_REV_CanonicalizationMethod(struct zx_ds_SignedInfo_s* x); 992 void zx_ds_SignedInfo_REV_SignatureMethod(struct zx_ds_SignedInfo_s* x); 993 void zx_ds_SignedInfo_REV_Reference(struct zx_ds_SignedInfo_s* x); 994 995 #endif 996 /* -------------------------- ds_Transform -------------------------- */ 997 /* refby( zx_xenc_Transforms_s zx_ds_Transforms_s ) */ 998 #ifndef zx_ds_Transform_EXT 999 #define zx_ds_Transform_EXT 1000 #endif 1001 struct zx_ds_Transform_s { 1002 ZX_ELEM_EXT 1003 zx_ds_Transform_EXT 1004 struct zx_elem_s* XPath; /* {0,-1} xs:string */ 1005 struct zx_exca_InclusiveNamespaces_s* InclusiveNamespaces; /* {0,1} */ 1006 struct zx_attr_s* Algorithm; /* {1,1} attribute xs:anyURI */ 1007 }; 1008 1009 #define zx_NEW_ds_Transform(c, father) (struct zx_ds_Transform_s*)zx_new_elem((c),(father),zx_ds_Transform_ELEM) 1010 int zx_DEC_ATTR_ds_Transform(struct zx_ctx* c, struct zx_ds_Transform_s* x); 1011 int zx_DEC_ELEM_ds_Transform(struct zx_ctx* c, struct zx_ds_Transform_s* x); 1012 1013 #ifdef ZX_ENA_AUX 1014 struct zx_ds_Transform_s* zx_DEEP_CLONE_ds_Transform(struct zx_ctx* c, struct zx_ds_Transform_s* x, int dup_strs); 1015 void zx_DUP_STRS_ds_Transform(struct zx_ctx* c, struct zx_ds_Transform_s* x); 1016 int zx_WALK_SO_ds_Transform(struct zx_ctx* c, struct zx_ds_Transform_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1017 int zx_WALK_WO_ds_Transform(struct zx_ctx* c, struct zx_ds_Transform_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1018 #endif 1019 1020 #ifdef ZX_ENA_GETPUT 1021 struct zx_attr_s* zx_ds_Transform_GET_Algorithm(struct zx_ds_Transform_s* x); 1022 1023 struct zx_elem_s* zx_ds_Transform_GET_XPath(struct zx_ds_Transform_s* x, int n); 1024 struct zx_exca_InclusiveNamespaces_s* zx_ds_Transform_GET_InclusiveNamespaces(struct zx_ds_Transform_s* x, int n); 1025 1026 int zx_ds_Transform_NUM_XPath(struct zx_ds_Transform_s* x); 1027 int zx_ds_Transform_NUM_InclusiveNamespaces(struct zx_ds_Transform_s* x); 1028 1029 struct zx_elem_s* zx_ds_Transform_POP_XPath(struct zx_ds_Transform_s* x); 1030 struct zx_exca_InclusiveNamespaces_s* zx_ds_Transform_POP_InclusiveNamespaces(struct zx_ds_Transform_s* x); 1031 1032 void zx_ds_Transform_PUSH_XPath(struct zx_ds_Transform_s* x, struct zx_elem_s* y); 1033 void zx_ds_Transform_PUSH_InclusiveNamespaces(struct zx_ds_Transform_s* x, struct zx_exca_InclusiveNamespaces_s* y); 1034 1035 void zx_ds_Transform_PUT_Algorithm(struct zx_ds_Transform_s* x, struct zx_attr_s* y); 1036 1037 void zx_ds_Transform_PUT_XPath(struct zx_ds_Transform_s* x, int n, struct zx_elem_s* y); 1038 void zx_ds_Transform_PUT_InclusiveNamespaces(struct zx_ds_Transform_s* x, int n, struct zx_exca_InclusiveNamespaces_s* y); 1039 1040 void zx_ds_Transform_ADD_XPath(struct zx_ds_Transform_s* x, int n, struct zx_elem_s* z); 1041 void zx_ds_Transform_ADD_InclusiveNamespaces(struct zx_ds_Transform_s* x, int n, struct zx_exca_InclusiveNamespaces_s* z); 1042 1043 void zx_ds_Transform_DEL_XPath(struct zx_ds_Transform_s* x,int n); 1044 void zx_ds_Transform_DEL_InclusiveNamespaces(struct zx_ds_Transform_s* x, int n); 1045 1046 void zx_ds_Transform_REV_XPath(struct zx_ds_Transform_s* x); 1047 void zx_ds_Transform_REV_InclusiveNamespaces(struct zx_ds_Transform_s* x); 1048 1049 #endif 1050 /* -------------------------- ds_Transforms -------------------------- */ 1051 /* refby( zx_ds_Reference_s zx_ds_RetrievalMethod_s ) */ 1052 #ifndef zx_ds_Transforms_EXT 1053 #define zx_ds_Transforms_EXT 1054 #endif 1055 struct zx_ds_Transforms_s { 1056 ZX_ELEM_EXT 1057 zx_ds_Transforms_EXT 1058 struct zx_ds_Transform_s* Transform; /* {1,-1} nada */ 1059 }; 1060 1061 #define zx_NEW_ds_Transforms(c, father) (struct zx_ds_Transforms_s*)zx_new_elem((c),(father),zx_ds_Transforms_ELEM) 1062 int zx_DEC_ATTR_ds_Transforms(struct zx_ctx* c, struct zx_ds_Transforms_s* x); 1063 int zx_DEC_ELEM_ds_Transforms(struct zx_ctx* c, struct zx_ds_Transforms_s* x); 1064 1065 #ifdef ZX_ENA_AUX 1066 struct zx_ds_Transforms_s* zx_DEEP_CLONE_ds_Transforms(struct zx_ctx* c, struct zx_ds_Transforms_s* x, int dup_strs); 1067 void zx_DUP_STRS_ds_Transforms(struct zx_ctx* c, struct zx_ds_Transforms_s* x); 1068 int zx_WALK_SO_ds_Transforms(struct zx_ctx* c, struct zx_ds_Transforms_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1069 int zx_WALK_WO_ds_Transforms(struct zx_ctx* c, struct zx_ds_Transforms_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1070 #endif 1071 1072 #ifdef ZX_ENA_GETPUT 1073 1074 struct zx_ds_Transform_s* zx_ds_Transforms_GET_Transform(struct zx_ds_Transforms_s* x, int n); 1075 1076 int zx_ds_Transforms_NUM_Transform(struct zx_ds_Transforms_s* x); 1077 1078 struct zx_ds_Transform_s* zx_ds_Transforms_POP_Transform(struct zx_ds_Transforms_s* x); 1079 1080 void zx_ds_Transforms_PUSH_Transform(struct zx_ds_Transforms_s* x, struct zx_ds_Transform_s* y); 1081 1082 1083 void zx_ds_Transforms_PUT_Transform(struct zx_ds_Transforms_s* x, int n, struct zx_ds_Transform_s* y); 1084 1085 void zx_ds_Transforms_ADD_Transform(struct zx_ds_Transforms_s* x, int n, struct zx_ds_Transform_s* z); 1086 1087 void zx_ds_Transforms_DEL_Transform(struct zx_ds_Transforms_s* x, int n); 1088 1089 void zx_ds_Transforms_REV_Transform(struct zx_ds_Transforms_s* x); 1090 1091 #endif 1092 /* -------------------------- ds_X509Data -------------------------- */ 1093 /* refby( zx_ds_KeyInfo_s zx_xenc_RecipientKeyInfo_s zx_xenc_OriginatorKeyInfo_s ) */ 1094 #ifndef zx_ds_X509Data_EXT 1095 #define zx_ds_X509Data_EXT 1096 #endif 1097 struct zx_ds_X509Data_s { 1098 ZX_ELEM_EXT 1099 zx_ds_X509Data_EXT 1100 struct zx_ds_X509IssuerSerial_s* X509IssuerSerial; /* {0,-1} */ 1101 struct zx_elem_s* X509SKI; /* {0,-1} xs:base64Binary */ 1102 struct zx_elem_s* X509SubjectName; /* {0,-1} xs:string */ 1103 struct zx_elem_s* X509Certificate; /* {0,-1} xs:base64Binary */ 1104 struct zx_elem_s* X509CRL; /* {0,-1} xs:base64Binary */ 1105 }; 1106 1107 #define zx_NEW_ds_X509Data(c, father) (struct zx_ds_X509Data_s*)zx_new_elem((c),(father),zx_ds_X509Data_ELEM) 1108 int zx_DEC_ATTR_ds_X509Data(struct zx_ctx* c, struct zx_ds_X509Data_s* x); 1109 int zx_DEC_ELEM_ds_X509Data(struct zx_ctx* c, struct zx_ds_X509Data_s* x); 1110 1111 #ifdef ZX_ENA_AUX 1112 struct zx_ds_X509Data_s* zx_DEEP_CLONE_ds_X509Data(struct zx_ctx* c, struct zx_ds_X509Data_s* x, int dup_strs); 1113 void zx_DUP_STRS_ds_X509Data(struct zx_ctx* c, struct zx_ds_X509Data_s* x); 1114 int zx_WALK_SO_ds_X509Data(struct zx_ctx* c, struct zx_ds_X509Data_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1115 int zx_WALK_WO_ds_X509Data(struct zx_ctx* c, struct zx_ds_X509Data_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1116 #endif 1117 1118 #ifdef ZX_ENA_GETPUT 1119 1120 struct zx_ds_X509IssuerSerial_s* zx_ds_X509Data_GET_X509IssuerSerial(struct zx_ds_X509Data_s* x, int n); 1121 struct zx_elem_s* zx_ds_X509Data_GET_X509SKI(struct zx_ds_X509Data_s* x, int n); 1122 struct zx_elem_s* zx_ds_X509Data_GET_X509SubjectName(struct zx_ds_X509Data_s* x, int n); 1123 struct zx_elem_s* zx_ds_X509Data_GET_X509Certificate(struct zx_ds_X509Data_s* x, int n); 1124 struct zx_elem_s* zx_ds_X509Data_GET_X509CRL(struct zx_ds_X509Data_s* x, int n); 1125 1126 int zx_ds_X509Data_NUM_X509IssuerSerial(struct zx_ds_X509Data_s* x); 1127 int zx_ds_X509Data_NUM_X509SKI(struct zx_ds_X509Data_s* x); 1128 int zx_ds_X509Data_NUM_X509SubjectName(struct zx_ds_X509Data_s* x); 1129 int zx_ds_X509Data_NUM_X509Certificate(struct zx_ds_X509Data_s* x); 1130 int zx_ds_X509Data_NUM_X509CRL(struct zx_ds_X509Data_s* x); 1131 1132 struct zx_ds_X509IssuerSerial_s* zx_ds_X509Data_POP_X509IssuerSerial(struct zx_ds_X509Data_s* x); 1133 struct zx_elem_s* zx_ds_X509Data_POP_X509SKI(struct zx_ds_X509Data_s* x); 1134 struct zx_elem_s* zx_ds_X509Data_POP_X509SubjectName(struct zx_ds_X509Data_s* x); 1135 struct zx_elem_s* zx_ds_X509Data_POP_X509Certificate(struct zx_ds_X509Data_s* x); 1136 struct zx_elem_s* zx_ds_X509Data_POP_X509CRL(struct zx_ds_X509Data_s* x); 1137 1138 void zx_ds_X509Data_PUSH_X509IssuerSerial(struct zx_ds_X509Data_s* x, struct zx_ds_X509IssuerSerial_s* y); 1139 void zx_ds_X509Data_PUSH_X509SKI(struct zx_ds_X509Data_s* x, struct zx_elem_s* y); 1140 void zx_ds_X509Data_PUSH_X509SubjectName(struct zx_ds_X509Data_s* x, struct zx_elem_s* y); 1141 void zx_ds_X509Data_PUSH_X509Certificate(struct zx_ds_X509Data_s* x, struct zx_elem_s* y); 1142 void zx_ds_X509Data_PUSH_X509CRL(struct zx_ds_X509Data_s* x, struct zx_elem_s* y); 1143 1144 1145 void zx_ds_X509Data_PUT_X509IssuerSerial(struct zx_ds_X509Data_s* x, int n, struct zx_ds_X509IssuerSerial_s* y); 1146 void zx_ds_X509Data_PUT_X509SKI(struct zx_ds_X509Data_s* x, int n, struct zx_elem_s* y); 1147 void zx_ds_X509Data_PUT_X509SubjectName(struct zx_ds_X509Data_s* x, int n, struct zx_elem_s* y); 1148 void zx_ds_X509Data_PUT_X509Certificate(struct zx_ds_X509Data_s* x, int n, struct zx_elem_s* y); 1149 void zx_ds_X509Data_PUT_X509CRL(struct zx_ds_X509Data_s* x, int n, struct zx_elem_s* y); 1150 1151 void zx_ds_X509Data_ADD_X509IssuerSerial(struct zx_ds_X509Data_s* x, int n, struct zx_ds_X509IssuerSerial_s* z); 1152 void zx_ds_X509Data_ADD_X509SKI(struct zx_ds_X509Data_s* x, int n, struct zx_elem_s* z); 1153 void zx_ds_X509Data_ADD_X509SubjectName(struct zx_ds_X509Data_s* x, int n, struct zx_elem_s* z); 1154 void zx_ds_X509Data_ADD_X509Certificate(struct zx_ds_X509Data_s* x, int n, struct zx_elem_s* z); 1155 void zx_ds_X509Data_ADD_X509CRL(struct zx_ds_X509Data_s* x, int n, struct zx_elem_s* z); 1156 1157 void zx_ds_X509Data_DEL_X509IssuerSerial(struct zx_ds_X509Data_s* x, int n); 1158 void zx_ds_X509Data_DEL_X509SKI(struct zx_ds_X509Data_s* x,int n); 1159 void zx_ds_X509Data_DEL_X509SubjectName(struct zx_ds_X509Data_s* x,int n); 1160 void zx_ds_X509Data_DEL_X509Certificate(struct zx_ds_X509Data_s* x,int n); 1161 void zx_ds_X509Data_DEL_X509CRL(struct zx_ds_X509Data_s* x,int n); 1162 1163 void zx_ds_X509Data_REV_X509IssuerSerial(struct zx_ds_X509Data_s* x); 1164 void zx_ds_X509Data_REV_X509SKI(struct zx_ds_X509Data_s* x); 1165 void zx_ds_X509Data_REV_X509SubjectName(struct zx_ds_X509Data_s* x); 1166 void zx_ds_X509Data_REV_X509Certificate(struct zx_ds_X509Data_s* x); 1167 void zx_ds_X509Data_REV_X509CRL(struct zx_ds_X509Data_s* x); 1168 1169 #endif 1170 /* -------------------------- ds_X509IssuerSerial -------------------------- */ 1171 /* refby( zx_ds_X509Data_s ) */ 1172 #ifndef zx_ds_X509IssuerSerial_EXT 1173 #define zx_ds_X509IssuerSerial_EXT 1174 #endif 1175 struct zx_ds_X509IssuerSerial_s { 1176 ZX_ELEM_EXT 1177 zx_ds_X509IssuerSerial_EXT 1178 struct zx_elem_s* X509IssuerName; /* {1,1} xs:string */ 1179 struct zx_elem_s* X509SerialNumber; /* {1,1} xs:integer */ 1180 }; 1181 1182 #define zx_NEW_ds_X509IssuerSerial(c, father) (struct zx_ds_X509IssuerSerial_s*)zx_new_elem((c),(father),zx_ds_X509IssuerSerial_ELEM) 1183 int zx_DEC_ATTR_ds_X509IssuerSerial(struct zx_ctx* c, struct zx_ds_X509IssuerSerial_s* x); 1184 int zx_DEC_ELEM_ds_X509IssuerSerial(struct zx_ctx* c, struct zx_ds_X509IssuerSerial_s* x); 1185 1186 #ifdef ZX_ENA_AUX 1187 struct zx_ds_X509IssuerSerial_s* zx_DEEP_CLONE_ds_X509IssuerSerial(struct zx_ctx* c, struct zx_ds_X509IssuerSerial_s* x, int dup_strs); 1188 void zx_DUP_STRS_ds_X509IssuerSerial(struct zx_ctx* c, struct zx_ds_X509IssuerSerial_s* x); 1189 int zx_WALK_SO_ds_X509IssuerSerial(struct zx_ctx* c, struct zx_ds_X509IssuerSerial_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1190 int zx_WALK_WO_ds_X509IssuerSerial(struct zx_ctx* c, struct zx_ds_X509IssuerSerial_s* x, void* ctx, int (*callback)(struct zx_node_s* node, void* ctx)); 1191 #endif 1192 1193 #ifdef ZX_ENA_GETPUT 1194 1195 struct zx_elem_s* zx_ds_X509IssuerSerial_GET_X509IssuerName(struct zx_ds_X509IssuerSerial_s* x, int n); 1196 struct zx_elem_s* zx_ds_X509IssuerSerial_GET_X509SerialNumber(struct zx_ds_X509IssuerSerial_s* x, int n); 1197 1198 int zx_ds_X509IssuerSerial_NUM_X509IssuerName(struct zx_ds_X509IssuerSerial_s* x); 1199 int zx_ds_X509IssuerSerial_NUM_X509SerialNumber(struct zx_ds_X509IssuerSerial_s* x); 1200 1201 struct zx_elem_s* zx_ds_X509IssuerSerial_POP_X509IssuerName(struct zx_ds_X509IssuerSerial_s* x); 1202 struct zx_elem_s* zx_ds_X509IssuerSerial_POP_X509SerialNumber(struct zx_ds_X509IssuerSerial_s* x); 1203 1204 void zx_ds_X509IssuerSerial_PUSH_X509IssuerName(struct zx_ds_X509IssuerSerial_s* x, struct zx_elem_s* y); 1205 void zx_ds_X509IssuerSerial_PUSH_X509SerialNumber(struct zx_ds_X509IssuerSerial_s* x, struct zx_elem_s* y); 1206 1207 1208 void zx_ds_X509IssuerSerial_PUT_X509IssuerName(struct zx_ds_X509IssuerSerial_s* x, int n, struct zx_elem_s* y); 1209 void zx_ds_X509IssuerSerial_PUT_X509SerialNumber(struct zx_ds_X509IssuerSerial_s* x, int n, struct zx_elem_s* y); 1210 1211 void zx_ds_X509IssuerSerial_ADD_X509IssuerName(struct zx_ds_X509IssuerSerial_s* x, int n, struct zx_elem_s* z); 1212 void zx_ds_X509IssuerSerial_ADD_X509SerialNumber(struct zx_ds_X509IssuerSerial_s* x, int n, struct zx_elem_s* z); 1213 1214 void zx_ds_X509IssuerSerial_DEL_X509IssuerName(struct zx_ds_X509IssuerSerial_s* x,int n); 1215 void zx_ds_X509IssuerSerial_DEL_X509SerialNumber(struct zx_ds_X509IssuerSerial_s* x,int n); 1216 1217 void zx_ds_X509IssuerSerial_REV_X509IssuerName(struct zx_ds_X509IssuerSerial_s* x); 1218 void zx_ds_X509IssuerSerial_REV_X509SerialNumber(struct zx_ds_X509IssuerSerial_s* x); 1219 1220 #endif 1221 1222 #endif 1223