diff options
Diffstat (limited to 'src/xmlsec.c')
-rw-r--r-- | src/xmlsec.c | 38 |
1 files changed, 13 insertions, 25 deletions
diff --git a/src/xmlsec.c b/src/xmlsec.c index 8b6d0cab..6098d3c5 100644 --- a/src/xmlsec.c +++ b/src/xmlsec.c @@ -6,7 +6,7 @@ * This is free software; see Copyright file in the source * distribution for preciese wording. * - * Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com> + * Copyright (C) 2002-2016 Aleksey Sanin <aleksey@aleksey.com>. All Rights Reserved. */ #include "globals.h" @@ -21,7 +21,6 @@ #include <xmlsec/transforms.h> #include <xmlsec/app.h> #include <xmlsec/io.h> -#include <xmlsec/xkms.h> #include <xmlsec/errors.h> /** @@ -66,24 +65,7 @@ xmlSecInit(void) { return(-1); } -#ifndef XMLSEC_NO_XKMS - if(xmlSecXkmsRespondWithIdsInit() < 0) { - xmlSecError(XMLSEC_ERRORS_HERE, - NULL, - "xmlSecXkmsRespondWithIdsInit", - XMLSEC_ERRORS_R_XMLSEC_FAILED, - XMLSEC_ERRORS_NO_MESSAGE); - return(-1); - } - if(xmlSecXkmsServerRequestIdsInit() < 0) { - xmlSecError(XMLSEC_ERRORS_HERE, - NULL, - "xmlSecXkmsServerRequestIdsInit", - XMLSEC_ERRORS_R_XMLSEC_FAILED, - XMLSEC_ERRORS_NO_MESSAGE); - return(-1); - } -#endif /* XMLSEC_NO_XKMS */ + /* we use rand() function to generate id attributes */ srand(time(NULL)); @@ -101,11 +83,6 @@ int xmlSecShutdown(void) { int res = 0; -#ifndef XMLSEC_NO_XKMS - xmlSecXkmsServerRequestIdsShutdown(); - xmlSecXkmsRespondWithIdsShutdown(); -#endif /* XMLSEC_NO_XKMS */ - xmlSecTransformIdsShutdown(); xmlSecKeyDataIdsShutdown(); @@ -126,6 +103,17 @@ xmlSecShutdown(void) { } /** + * xmlSecShutdown: + * + * Gets the default crypto engine ("openssl", "nss", etc.) for the XML Security Library. + * + * Returns: the default crypto engine ("openssl", "nss", etc.). + */ +const xmlChar * xmlSecGetDefaultCrypto(void) { + return BAD_CAST XMLSEC_DEFAULT_CRYPTO; +} + +/** * xmlSecCheckVersionExt: * @major: the major version number. * @minor: the minor version number. |