X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2Fsecurity%2Fimpl%2FXSECCryptoX509CRL.cpp;h=7506a8bb0025dd7de6f862ddb0fbd370e4c39f81;hb=a0d768778a8f5f539b909baf5b115e70ea765f0f;hp=e009f58d437ccfe8e964270cd148a16741dd7083;hpb=e7a65d784215bc04355f014141219b3e7ab4559a;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltooling/security/impl/XSECCryptoX509CRL.cpp b/xmltooling/security/impl/XSECCryptoX509CRL.cpp index e009f58..7506a8b 100644 --- a/xmltooling/security/impl/XSECCryptoX509CRL.cpp +++ b/xmltooling/security/impl/XSECCryptoX509CRL.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2006 The Apache Software Foundation. + * Copyright 2001-2010 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,18 @@ using namespace xmltooling; +XSECCryptoX509CRL::XSECCryptoX509CRL() +{ +} + +XSECCryptoX509CRL::~XSECCryptoX509CRL() +{ +} + void XSECCryptoX509CRL::loadX509CRLPEM(const char* buf, unsigned int len) { const char * b; - char * b1 = NULL; + char * b1 = nullptr; if (len == 0) b = buf; else { @@ -43,9 +51,9 @@ void XSECCryptoX509CRL::loadX509CRLPEM(const char* buf, unsigned int len) const char *p = strstr(buf, "-----BEGIN X509 CRL-----"); - if (p == NULL) { + if (p == nullptr) { - if (b1 != NULL) + if (b1 != nullptr) delete[] b1; throw XSECCryptoException(XSECCryptoException::X509Error, @@ -67,7 +75,7 @@ void XSECCryptoX509CRL::loadX509CRLPEM(const char* buf, unsigned int len) if (strstr(p, "-----END X509 CRL-----") != p) { - if (b1 != NULL) + if (b1 != nullptr) delete[] b1; throw XSECCryptoException(XSECCryptoException::X509Error, @@ -75,7 +83,7 @@ void XSECCryptoX509CRL::loadX509CRLPEM(const char* buf, unsigned int len) } - if (b1 != NULL) + if (b1 != nullptr) delete[] b1; output[i] = '\0';