From cee73cffb7e25e7cc65ba749271ff77a601fa2fa Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Mon, 12 Sep 2011 16:34:43 +0000 Subject: [PATCH] https://issues.shibboleth.net/jira/browse/SSPCPP-392 --- saml/SAMLConfig.cpp | 4 ++-- saml/binding/impl/SecurityPolicy.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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