X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2Fsecurity%2Fimpl%2FOpenSSLCryptoX509CRL.cpp;h=fc8f7c6b2a2390fe9f16b9eee75b7571205470c0;hb=1b05825adac7bedec6badbc51185fb7692fa4ad8;hp=e5c594e09a3f040d12730f651f9855d81538c0bc;hpb=0efb36324aa59f242c69f9b437e0256664c7708f;p=shibboleth%2Fxmltooling.git diff --git a/xmltooling/security/impl/OpenSSLCryptoX509CRL.cpp b/xmltooling/security/impl/OpenSSLCryptoX509CRL.cpp index e5c594e..fc8f7c6 100644 --- a/xmltooling/security/impl/OpenSSLCryptoX509CRL.cpp +++ b/xmltooling/security/impl/OpenSSLCryptoX509CRL.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2007 The Apache Software Foundation. + * Copyright 2001-2009 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. @@ -17,7 +17,7 @@ /** * OpenSSLCryptoX509CRL.cpp * - * OpenSSL-based class for handling X.509 CRLs + * OpenSSL-based class for handling X.509 CRLs. */ #include "internal.h" @@ -110,3 +110,11 @@ void OpenSSLCryptoX509CRL::loadX509CRLBase64Bin(const char* buf, unsigned int le m_DERX509CRL.sbStrcpyIn(buf); } + +XSECCryptoX509CRL* OpenSSLCryptoX509CRL::clone() const +{ + OpenSSLCryptoX509CRL* copy = new OpenSSLCryptoX509CRL(); + copy->mp_X509CRL = X509_CRL_dup(mp_X509CRL); + copy->m_DERX509CRL = m_DERX509CRL; + return copy; +}