#include "rgw_ldap.h"
+#include "common/ceph_crypto.h"
#include "common/ceph_context.h"
#include "common/common_init.h"
#include "common/dout.h"
if (ldap_bindpw.back() == '\n')
ldap_bindpw.pop_back();
}
+ ::ceph::crypto::zeroize_for_security(bindpw, sizeof(bindpw));
}
return ldap_bindpw;
k[i % CEPH_CRYPTO_HMACSHA1_DIGESTSIZE] |= *s;
}
calc_hmac_sha1(k, sizeof(k), bl.c_str(), bl.length(), p.c_str());
+ ::ceph::crypto::zeroize_for_security(k, sizeof(k));
bl.append(p);
h->Final((unsigned char *)sha);
set_info_pieces(sha);
}
+ ::ceph::crypto::zeroize_for_security(sha, sizeof(sha));
}
int seed::get_params()