]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
auth: Drop "using namespace", it's almost always used explicitly anyway.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Wed, 2 Mar 2011 21:26:32 +0000 (13:26 -0800)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Fri, 11 Mar 2011 21:13:39 +0000 (13:13 -0800)
This helps us be agnostic about what crypto library is in use.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
src/auth/Crypto.cc

index 7b2c3abcfa2bac710f7f34650f70c45a4334f00b..ea9fe6e3ecb57df33b6a6dadeedf894969491efd 100644 (file)
@@ -26,8 +26,6 @@
 
 #include <errno.h>
 
-using namespace CryptoPP;
-
 int get_random_bytes(char *buf, int len)
 {
   int fd = TEMP_FAILURE_RETRY(::open("/dev/urandom", O_RDONLY));
@@ -84,8 +82,8 @@ int CryptoNone::decrypt(bufferptr& secret, const bufferlist& in, bufferlist& out
 
 
 // ---------------------------------------------------
-#define AES_KEY_LEN     ((size_t)AES::DEFAULT_KEYLENGTH)
-#define AES_BLOCK_LEN   ((size_t)AES::BLOCKSIZE)
+#define AES_KEY_LEN     ((size_t)CryptoPP::AES::DEFAULT_KEYLENGTH)
+#define AES_BLOCK_LEN   ((size_t)CryptoPP::AES::BLOCKSIZE)
 
 class CryptoAES : public CryptoHandler {
 public: