/usr/include/xmlsec1/xmlsec/xkms.h is in libxmlsec1-dev 1.2.18-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 | /**
* XML Security Library (http://www.aleksey.com/xmlsec).
*
* "XML Key Management Specification v 2.0" implementation
* http://www.w3.org/TR/xkms2/
*
* This is free software; see Copyright file in the source
* distribution for preciese wording.
*
* Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com>
*/
#ifndef __XMLSEC_XKMS_H__
#define __XMLSEC_XKMS_H__
#ifndef XMLSEC_NO_XKMS
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include <stdio.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <xmlsec/xmlsec.h>
#include <xmlsec/buffer.h>
#include <xmlsec/list.h>
#include <xmlsec/keys.h>
#include <xmlsec/keysmngr.h>
#include <xmlsec/keyinfo.h>
#include <xmlsec/transforms.h>
/************************************************************************
*
* Forward declarations. These internal xmlsec library structures are
* declared in "xmlsec/private/xkms.h" file.
*
************************************************************************/
typedef struct _xmlSecXkmsRespondWithKlass xmlSecXkmsRespondWithKlass,
*xmlSecXkmsRespondWithId;
typedef struct _xmlSecXkmsServerRequestKlass xmlSecXkmsServerRequestKlass,
*xmlSecXkmsServerRequestId;
/**
* xmlSecXkmsResultMajor:
* @xmlSecXkmsResultMajorSuccess: The operation succeeded.
* @xmlSecXkmsResultMajorVersionMismatch: The service does not support
* the protocol version specified
* in the request.
* @xmlSecXkmsResultMajorSender: An error occurred that was due
* to the message sent by the sender.
* @xmlSecXkmsResultMajorReceiver: An error occurred at the receiver.
* @xmlSecXkmsResultMajorRepresent: The service has not acted on the
* request. In order for the request
* to be acted upon the request MUST
* be represented with the specified
* nonce in accordance with the two
* phase protocol.
* @xmlSecXkmsResultMajorPending: The request has been accepted
* for processing and the service
* will return the result asynchronously.
*
* The values for ResultMajor attribute.
*/
typedef enum {
xmlSecXkmsResultMajorSuccess = 0,
xmlSecXkmsResultMajorVersionMismatch,
xmlSecXkmsResultMajorSender,
xmlSecXkmsResultMajorReceiver,
xmlSecXkmsResultMajorRepresent,
xmlSecXkmsResultMajorPending
} xmlSecXkmsResultMajor;
/**
* xmlSecXkmsResultMinor:
* @xmlSecXkmsResultMinorNone: No minor result code available.
* @xmlSecXkmsResultMinorNoMatch: No match was found for the search
* prototype provided.
* @xmlSecXkmsResultMinorTooManyResponses: The request resulted in the
* number of responses that
* exceeded either the ResponseLimit
* value specified in the request or
* some other limit determined by
* the service. The service MAY
* either return a subset of the
* possible responses or none at all.
* @xmlSecXkmsResultMinorIncomplete: Only part of the information
* requested could be provided.
* @xmlSecXkmsResultMinorFailure: The service attempted to perform
* the request but the operation
* failed for unspecified reasons.
* @xmlSecXkmsResultMinorRefused: The operation was refused. The
* service did not attempt to
* perform the request.
* @xmlSecXkmsResultMinorNoAuthentication: The operation was refused
* because the necessary authentication
* information was incorrect or missing.
* @xmlSecXkmsResultMinorMessageNotSupported: The receiver does not implement
* the specified operation.
* @xmlSecXkmsResultMinorUnknownResponseId: The ResponseId for which pending
* status was requested is unknown to
* the service.
* @xmlSecXkmsResultMinorSynchronous: The receiver does not support
* synchronous processing of this
* type of request.
*
* The values for ResultMinor attribute.
*/
typedef enum {
xmlSecXkmsResultMinorNone = 0,
xmlSecXkmsResultMinorNoMatch,
xmlSecXkmsResultMinorTooManyResponses,
xmlSecXkmsResultMinorIncomplete,
xmlSecXkmsResultMinorFailure,
xmlSecXkmsResultMinorRefused,
xmlSecXkmsResultMinorNoAuthentication,
xmlSecXkmsResultMinorMessageNotSupported,
xmlSecXkmsResultMinorUnknownResponseId,
xmlSecXkmsResultMinorSynchronous
} xmlSecXkmsResultMinor;
/**
* xmlSecXkmsKeyBindingStatus:
* @xmlSecXkmsKeyBindingStatusNone: The key status is not available.
* @xmlSecXkmsKeyBindingStatusValid: The key is valid.
* @xmlSecXkmsKeyBindingStatusInvalid: The key is not valid.
* @xmlSecXkmsKeyBindingStatusIndeterminate: Could not determine key status.
*
* The values for key binding StatusValue attribute.
*/
typedef enum {
xmlSecXkmsKeyBindingStatusNone,
xmlSecXkmsKeyBindingStatusValid,
xmlSecXkmsKeyBindingStatusInvalid,
xmlSecXkmsKeyBindingStatusIndeterminate
} xmlSecXkmsKeyBindingStatus;
/**
* xmlSecXkmsServerFormat:
* @xmlSecXkmsServerFormatUnknown: The format is unknown.
* @xmlSecXkmsServerFormatPlain: The request/response are not enveloped.
* @xmlSecXkmsServerFormatSoap1_1: The request/response are SOAP 1.1 encapsulated
* @xmlSecXkmsServerFormatSoap1_2: The request/response are SOAP 1.2 encapsulated.
*
* The xkms server request/response format.
*/
typedef enum {
xmlSecXkmsServerFormatUnknown = 0,
xmlSecXkmsServerFormatPlain,
xmlSecXkmsServerFormatSoap11,
xmlSecXkmsServerFormatSoap12
} xmlSecXkmsServerFormat;
XMLSEC_EXPORT xmlSecXkmsServerFormat xmlSecXkmsServerFormatFromString
(const xmlChar* str);
XMLSEC_EXPORT const xmlChar* xmlSecXkmsServerFormatToString (xmlSecXkmsServerFormat format);
/************************************************************************
*
* XKMS requests server side processing klass
*
************************************************************************/
/**
* xmlSecXkmsServerCtx:
* @userData: the pointer to user data (xmlsec and xmlsec-crypto libraries
* never touches this).
* @flags: the XML Encryption processing flags.
* @flags2: the XML Encryption processing flags.
* @keyInfoReadCtx: the reading key context.
* @keyInfoWriteCtx: the writing key context (not used for signature verification).
* @reserved0: reserved for the future.
* @reserved1: reserved for the future.
*
* XKMS context.
*/
struct _xmlSecXkmsServerCtx {
/* these data user can set before performing the operation */
void* userData;
xmlSecBitMask flags;
xmlSecBitMask flags2;
xmlSecKeyInfoCtx keyInfoReadCtx;
xmlSecKeyInfoCtx keyInfoWriteCtx;
xmlSecPtrList enabledRespondWithIds;
xmlSecPtrList enabledServerRequestIds;
xmlChar* expectedService;
xmlChar* idPrefix;
xmlSecSize idLen;
/* these data are returned */
xmlSecPtrList keys;
xmlSecXkmsResultMajor resultMajor;
xmlSecXkmsResultMinor resultMinor;
xmlSecXkmsServerRequestId requestId;
xmlChar* id;
xmlChar* service;
xmlChar* nonce;
xmlChar* originalRequestId;
xmlChar* pendingNotificationMechanism;
xmlChar* pendingNotificationIdentifier;
int responseLimit;
xmlSecBitMask responseMechanismMask;
xmlSecPtrListPtr compoundRequestContexts;
/* these are internal data, nobody should change that except us */
xmlNodePtr requestNode;
xmlNodePtr opaqueClientDataNode;
xmlNodePtr firtsMsgExtNode;
xmlNodePtr keyInfoNode;
xmlSecPtrList respWithList;
/* reserved for future */
void* reserved0;
void* reserved1;
};
XMLSEC_EXPORT xmlSecXkmsServerCtxPtr xmlSecXkmsServerCtxCreate (xmlSecKeysMngrPtr keysMngr);
XMLSEC_EXPORT void xmlSecXkmsServerCtxDestroy (xmlSecXkmsServerCtxPtr ctx);
XMLSEC_EXPORT int xmlSecXkmsServerCtxInitialize (xmlSecXkmsServerCtxPtr ctx,
xmlSecKeysMngrPtr keysMngr);
XMLSEC_EXPORT void xmlSecXkmsServerCtxFinalize (xmlSecXkmsServerCtxPtr ctx);
XMLSEC_EXPORT void xmlSecXkmsServerCtxReset (xmlSecXkmsServerCtxPtr ctx);
XMLSEC_EXPORT int xmlSecXkmsServerCtxCopyUserPref (xmlSecXkmsServerCtxPtr dst,
xmlSecXkmsServerCtxPtr src);
XMLSEC_EXPORT xmlNodePtr xmlSecXkmsServerCtxProcess (xmlSecXkmsServerCtxPtr ctx,
xmlNodePtr node,
xmlSecXkmsServerFormat format,
xmlDocPtr doc);
XMLSEC_EXPORT int xmlSecXkmsServerCtxRequestRead (xmlSecXkmsServerCtxPtr ctx,
xmlNodePtr node);
XMLSEC_EXPORT xmlNodePtr xmlSecXkmsServerCtxResponseWrite(xmlSecXkmsServerCtxPtr ctx,
xmlDocPtr doc);
XMLSEC_EXPORT xmlNodePtr xmlSecXkmsServerCtxRequestUnwrap(xmlSecXkmsServerCtxPtr ctx,
xmlNodePtr node,
xmlSecXkmsServerFormat format);
XMLSEC_EXPORT xmlNodePtr xmlSecXkmsServerCtxResponseWrap (xmlSecXkmsServerCtxPtr ctx,
xmlNodePtr node,
xmlSecXkmsServerFormat format,
xmlDocPtr doc);
XMLSEC_EXPORT xmlNodePtr xmlSecXkmsServerCtxFatalErrorResponseCreate
(xmlSecXkmsServerCtxPtr ctx,
xmlSecXkmsServerFormat format,
xmlDocPtr doc);
XMLSEC_EXPORT void xmlSecXkmsServerCtxSetResult (xmlSecXkmsServerCtxPtr ctx,
xmlSecXkmsResultMajor resultMajor,
xmlSecXkmsResultMinor resultMinor);
XMLSEC_EXPORT void xmlSecXkmsServerCtxDebugDump (xmlSecXkmsServerCtxPtr ctx,
FILE* output);
XMLSEC_EXPORT void xmlSecXkmsServerCtxDebugXmlDump (xmlSecXkmsServerCtxPtr ctx,
FILE* output);
/************************************************************************
*
* xmlSecXkmsServerCtxPtr list
*
************************************************************************/
/**
* xmlSecXkmsServerCtxPtrListId:
*
* zmlSecXkmsServerCtx klasses list klass.
*/
#define xmlSecXkmsServerCtxPtrListId xmlSecXkmsServerCtxPtrListGetKlass()
XMLSEC_EXPORT xmlSecPtrListId xmlSecXkmsServerCtxPtrListGetKlass
(void);
/************************************************************************
*
* xmlSecXkmsServerCtxFlags
*
************************************************************************/
/**
* XMLSEC_XKMS_SERVER_FLAGS_STOP_ON_UNKNOWN_RESPONSE_MECHANISM
*
* If flag is set then we abort if an unknown <xkms:ResponseMechanism/>
* value is found.
*/
#define XMLSEC_XKMS_SERVER_FLAGS_STOP_ON_UNKNOWN_RESPONSE_MECHANISM 0x00000001
/**
* XMLSEC_XKMS_SERVER_FLAGS_STOP_ON_UNKNOWN_RESPOND_WITH
*
* If flag is set then we abort if an unknown <xkms:RespondWith/>
* value is found.
*/
#define XMLSEC_XKMS_SERVER_FLAGS_STOP_ON_UNKNOWN_RESPOND_WITH 0x00000002
/**
* XMLSEC_XKMS_SERVER_FLAGS_STOP_ON_UNKNOWN_KEY_USAGE
*
* If flag is set then we abort if an unknown <xkms:KeyUsage/>
* value is found.
*/
#define XMLSEC_XKMS_SERVER_FLAGS_STOP_ON_UNKNOWN_KEY_USAGE 0x00000004
/************************************************************************
*
* XKMS ResponseMechanism element values.
*
************************************************************************/
/**
* XMLSEC_XKMS_RESPONSE_MECHANISM_MASK_REPRESENT:
*
* XKMS ResponseMechanism element value. The requestor is prepared to
* accept a response that uses asynchronous processing, i.e. the service
* MAY return the MajorResult code Pending.
*/
#define XMLSEC_XKMS_RESPONSE_MECHANISM_MASK_PENDING 0x00000001
/**
* XMLSEC_XKMS_RESPONSE_MECHANISM_MASK_REPRESENT:
*
* XKMS ResponseMechanism element value. The requestor is prepared to
* accept a response that uses the two phase protocol, i.e. the service
* MAY return the MajorResult code Represent.
*/
#define XMLSEC_XKMS_RESPONSE_MECHANISM_MASK_REPRESENT 0x00000002
/**
* XMLSEC_XKMS_RESPONSE_MECHANISM_MASK_REQUEST_SIGNATURE_VALUE:
*
* XKMS ResponseMechanism element value. The requestor is prepared to
* accept a response that carries a <RequestSignatureValue> element.
*/
#define XMLSEC_XKMS_RESPONSE_MECHANISM_MASK_REQUEST_SIGNATURE_VALUE 0x00000004
/************************************************************************
*
* XKMS ResponseLimit element values
*
************************************************************************/
/**
* XMLSEC_XKMS_NO_RESPONSE_LIMIT:
*
* The ResponseLimit is not specified.
*/
#define XMLSEC_XKMS_NO_RESPONSE_LIMIT -1
/************************************************************************
*
* XKMS KeyBinding reason values
*
************************************************************************/
/**
* XMLSEC_XKMS_KEY_BINDING_REASON_MASK_ISSUER_TRAST:
*
* The issuer of the information on which the key binding is based is
* considered to be trustworthy by the XKMS service.
*
* X.509 Equivalents
* - Valid: Certificate path anchored by trusted root successfully constructed.
* - Invalid: Certificate path could not be constructed to a trusted root.
*/
#define XMLSEC_XKMS_KEY_BINDING_REASON_MASK_ISSUER_TRAST 0x00000001
/**
* XMLSEC_XKMS_KEY_BINDING_REASON_MASK_REVOCATION_STATUS:
*
* The XKMS service has affirmatively verified the status of the
* key binding with an authoritative source
*
* X.509 Equivalents
* - Valid: Certificate status validated using CRL or OCSP.
* - Invalid: Certificate status returned revoked or suspended.
*/
#define XMLSEC_XKMS_KEY_BINDING_REASON_MASK_REVOCATION_STATUS 0x00000002
/**
* XMLSEC_XKMS_KEY_BINDING_REASON_MASK_VALIDITY_INTERVAL:
*
* The requested time instant was within the validity interval of
* the key binding
*
* X.509 Equivalents
* - Valid: The certificate chain was valid at the requested time instant.
* - Invalid: The requested time instant was before or after the certificate
* chain validity interval.
*/
#define XMLSEC_XKMS_KEY_BINDING_REASON_MASK_VALIDITY_INTERVAL 0x00000004
/**
* XMLSEC_XKMS_KEY_BINDING_REASON_MASK_SIGNATURE:
*
* Signature on signed data provided by the client in the <Keyinfo> element was
* successfully verified.
*
* X.509 Equivalents
* - Valid: Certificate Signature verified.
* - Invalid: Certificate Signature verification failed.
*/
#define XMLSEC_XKMS_KEY_BINDING_REASON_MASK_SIGNATURE 0x00000008
/************************************************************************
*
* XKMS RespondWith Klass
*
************************************************************************/
XMLSEC_EXPORT xmlSecPtrListPtr xmlSecXkmsRespondWithIdsGet (void);
XMLSEC_EXPORT int xmlSecXkmsRespondWithIdsInit (void);
XMLSEC_EXPORT void xmlSecXkmsRespondWithIdsShutdown(void);
XMLSEC_EXPORT int xmlSecXkmsRespondWithIdsRegisterDefault
(void);
XMLSEC_EXPORT int xmlSecXkmsRespondWithIdsRegister(xmlSecXkmsRespondWithId id);
XMLSEC_EXPORT int xmlSecXkmsRespondWithNodeRead (xmlSecXkmsRespondWithId id,
xmlSecXkmsServerCtxPtr ctx,
xmlNodePtr node);
XMLSEC_EXPORT int xmlSecXkmsRespondWithNodeWrite (xmlSecXkmsRespondWithId id,
xmlSecXkmsServerCtxPtr ctx,
xmlNodePtr node);
XMLSEC_EXPORT void xmlSecXkmsRespondWithDebugDump (xmlSecXkmsRespondWithId id,
FILE* output);
XMLSEC_EXPORT void xmlSecXkmsRespondWithDebugXmlDump
(xmlSecXkmsRespondWithId id,
FILE* output);
XMLSEC_EXPORT int xmlSecXkmsRespondWithDefaultNodeRead
(xmlSecXkmsRespondWithId id,
xmlSecXkmsServerCtxPtr ctx,
xmlNodePtr node);
XMLSEC_EXPORT int xmlSecXkmsRespondWithDefaultNodeWrite
(xmlSecXkmsRespondWithId id,
xmlSecXkmsServerCtxPtr ctx,
xmlNodePtr node);
/************************************************************************
*
* XKMS RespondWith Klass List
*
************************************************************************/
/**
* xmlSecXkmsRespondWithIdListId:
*
* XKMS RespondWith klasses list klass.
*/
#define xmlSecXkmsRespondWithIdListId xmlSecXkmsRespondWithIdListGetKlass()
XMLSEC_EXPORT xmlSecPtrListId xmlSecXkmsRespondWithIdListGetKlass
(void);
XMLSEC_EXPORT int xmlSecXkmsRespondWithIdListFind (xmlSecPtrListPtr list,
xmlSecXkmsRespondWithId id);
XMLSEC_EXPORT xmlSecXkmsRespondWithId xmlSecXkmsRespondWithIdListFindByNodeValue
(xmlSecPtrListPtr list,
xmlNodePtr node);
XMLSEC_EXPORT int xmlSecXkmsRespondWithIdListWrite(xmlSecPtrListPtr list,
xmlSecXkmsServerCtxPtr ctx,
xmlNodePtr node);
/********************************************************************
*
* XML Sec Library RespondWith Ids
*
*******************************************************************/
/**
* xmlSecXkmsRespondWithIdUnknown:
*
* The "unknown" RespondWith id (NULL).
*/
#define xmlSecXkmsRespondWithIdUnknown NULL
/**
* xmlSecXkmsRespondWithKeyNameId:
*
* The respond with KeyName klass.
*/
#define xmlSecXkmsRespondWithKeyNameId \
xmlSecXkmsRespondWithKeyNameGetKlass()
XMLSEC_EXPORT xmlSecXkmsRespondWithId xmlSecXkmsRespondWithKeyNameGetKlass(void);
/**
* xmlSecXkmsRespondWithKeyValueId:
*
* The respond with KeyValue klass.
*/
#define xmlSecXkmsRespondWithKeyValueId \
xmlSecXkmsRespondWithKeyValueGetKlass()
XMLSEC_EXPORT xmlSecXkmsRespondWithId xmlSecXkmsRespondWithKeyValueGetKlass(void);
/**
* xmlSecXkmsRespondWithPrivateKeyId:
*
* The respond with PrivateKey klass.
*/
#define xmlSecXkmsRespondWithPrivateKeyId \
xmlSecXkmsRespondWithPrivateKeyGetKlass()
XMLSEC_EXPORT xmlSecXkmsRespondWithId xmlSecXkmsRespondWithPrivateKeyGetKlass(void);
/**
* xmlSecXkmsRespondWithRetrievalMethodId:
*
* The respond with RetrievalMethod klass.
*/
#define xmlSecXkmsRespondWithRetrievalMethodId \
xmlSecXkmsRespondWithRetrievalMethodGetKlass()
XMLSEC_EXPORT xmlSecXkmsRespondWithId xmlSecXkmsRespondWithRetrievalMethodGetKlass(void);
/**
* xmlSecXkmsRespondWithX509CertId:
*
* The respond with X509Cert klass.
*/
#define xmlSecXkmsRespondWithX509CertId \
xmlSecXkmsRespondWithX509CertGetKlass()
XMLSEC_EXPORT xmlSecXkmsRespondWithId xmlSecXkmsRespondWithX509CertGetKlass(void);
/**
* xmlSecXkmsRespondWithX509ChainId:
*
* The respond with X509Chain klass.
*/
#define xmlSecXkmsRespondWithX509ChainId \
xmlSecXkmsRespondWithX509ChainGetKlass()
XMLSEC_EXPORT xmlSecXkmsRespondWithId xmlSecXkmsRespondWithX509ChainGetKlass(void);
/**
* xmlSecXkmsRespondWithX509CRLId:
*
* The respond with X509CRL klass.
*/
#define xmlSecXkmsRespondWithX509CRLId \
xmlSecXkmsRespondWithX509CRLGetKlass()
XMLSEC_EXPORT xmlSecXkmsRespondWithId xmlSecXkmsRespondWithX509CRLGetKlass(void);
/**
* xmlSecXkmsRespondWithPGPId:
*
* The respond with PGP klass.
*/
#define xmlSecXkmsRespondWithPGPId \
xmlSecXkmsRespondWithPGPGetKlass()
XMLSEC_EXPORT xmlSecXkmsRespondWithId xmlSecXkmsRespondWithPGPGetKlass(void);
/**
* xmlSecXkmsRespondWithSPKIId:
*
* The respond with SPKI klass.
*/
#define xmlSecXkmsRespondWithSPKIId \
xmlSecXkmsRespondWithSPKIGetKlass()
XMLSEC_EXPORT xmlSecXkmsRespondWithId xmlSecXkmsRespondWithSPKIGetKlass(void);
/************************************************************************
*
* XKMS ServerRequest Klass
*
************************************************************************/
XMLSEC_EXPORT xmlSecPtrListPtr xmlSecXkmsServerRequestIdsGet (void);
XMLSEC_EXPORT int xmlSecXkmsServerRequestIdsInit (void);
XMLSEC_EXPORT void xmlSecXkmsServerRequestIdsShutdown
(void);
XMLSEC_EXPORT int xmlSecXkmsServerRequestIdsRegisterDefault
(void);
XMLSEC_EXPORT int xmlSecXkmsServerRequestIdsRegister
(xmlSecXkmsServerRequestId id);
XMLSEC_EXPORT int xmlSecXkmsServerRequestNodeRead (xmlSecXkmsServerRequestId id,
xmlSecXkmsServerCtxPtr ctx,
xmlNodePtr node);
XMLSEC_EXPORT int xmlSecXkmsServerRequestExecute (xmlSecXkmsServerRequestId id,
xmlSecXkmsServerCtxPtr ctx);
XMLSEC_EXPORT xmlNodePtr xmlSecXkmsServerRequestNodeWrite(xmlSecXkmsServerRequestId id,
xmlSecXkmsServerCtxPtr ctx,
xmlDocPtr doc,
xmlNodePtr node);
XMLSEC_EXPORT void xmlSecXkmsServerRequestDebugDump(xmlSecXkmsServerRequestId id,
FILE* output);
XMLSEC_EXPORT void xmlSecXkmsServerRequestDebugXmlDump
(xmlSecXkmsServerRequestId id,
FILE* output);
/************************************************************************
*
* XKMS ServerRequest Klass List
*
************************************************************************/
/**
* xmlSecXkmsServerRequestIdListId:
*
* XKMS ServerRequest klasses list klass.
*/
#define xmlSecXkmsServerRequestIdListId xmlSecXkmsServerRequestIdListGetKlass()
XMLSEC_EXPORT xmlSecPtrListId xmlSecXkmsServerRequestIdListGetKlass
(void);
XMLSEC_EXPORT int xmlSecXkmsServerRequestIdListFind
(xmlSecPtrListPtr list,
xmlSecXkmsServerRequestId id);
XMLSEC_EXPORT xmlSecXkmsServerRequestId xmlSecXkmsServerRequestIdListFindByName
(xmlSecPtrListPtr list,
const xmlChar* name);
XMLSEC_EXPORT xmlSecXkmsServerRequestId xmlSecXkmsServerRequestIdListFindByNode
(xmlSecPtrListPtr list,
xmlNodePtr node);
/**
* xmlSecXkmsServerRequestIdUnknown:
*
* The "unknown" ServerRequest id (NULL).
*/
#define xmlSecXkmsServerRequestIdUnknown NULL
/**
* xmlSecXkmsServerRequestResultId:
*
* The Result response klass.
*/
#define xmlSecXkmsServerRequestResultId \
xmlSecXkmsServerRequestResultGetKlass()
XMLSEC_EXPORT xmlSecXkmsServerRequestId xmlSecXkmsServerRequestResultGetKlass(void);
/**
* xmlSecXkmsServerRequestStatusId:
*
* The StatusRequest klass.
*/
#define xmlSecXkmsServerRequestStatusId \
xmlSecXkmsServerRequestStatusGetKlass()
XMLSEC_EXPORT xmlSecXkmsServerRequestId xmlSecXkmsServerRequestStatusGetKlass(void);
/**
* xmlSecXkmsServerRequestCompoundId:
*
* The CompoundRequest klass.
*/
#define xmlSecXkmsServerRequestCompoundId \
xmlSecXkmsServerRequestCompoundGetKlass()
XMLSEC_EXPORT xmlSecXkmsServerRequestId xmlSecXkmsServerRequestCompoundGetKlass(void);
/**
* xmlSecXkmsServerRequestLocateId:
*
* The LocateRequest klass.
*/
#define xmlSecXkmsServerRequestLocateId \
xmlSecXkmsServerRequestLocateGetKlass()
XMLSEC_EXPORT xmlSecXkmsServerRequestId xmlSecXkmsServerRequestLocateGetKlass(void);
/**
* xmlSecXkmsServerRequestValidateId:
*
* The ValidateRequest klass.
*/
#define xmlSecXkmsServerRequestValidateId \
xmlSecXkmsServerRequestValidateGetKlass()
XMLSEC_EXPORT xmlSecXkmsServerRequestId xmlSecXkmsServerRequestValidateGetKlass(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* XMLSEC_NO_XKMS */
#endif /* __XMLSEC_XKMS_H__ */
|