From: Scott Cantor Date: Mon, 12 Sep 2011 16:34:43 +0000 (+0000) Subject: https://issues.shibboleth.net/jira/browse/SSPCPP-392 X-Git-Tag: 2.5.0~72 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=cee73cffb7e25e7cc65ba749271ff77a601fa2fa https://issues.shibboleth.net/jira/browse/SSPCPP-392 --- diff --git a/saml/SAMLConfig.cpp b/saml/SAMLConfig.cpp index fbe109f..5842713 100644 --- a/saml/SAMLConfig.cpp +++ b/saml/SAMLConfig.cpp @@ -234,8 +234,8 @@ void SAMLInternalConfig::generateRandomBytes(void* buf, unsigned int len) void SAMLInternalConfig::generateRandomBytes(std::string& buf, unsigned int len) { buf.erase(); - auto_ptr hold(new unsigned char[len]); - generateRandomBytes(hold.get(),len); + auto_arrayptr hold(new unsigned char[len]); + generateRandomBytes(const_cast(hold.get()), len); for (unsigned int i=0; i