summaryrefslogtreecommitdiff
path: root/src/LibgcryptMessageDigestImpl.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
commit07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch)
tree2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/LibgcryptMessageDigestImpl.h
parent126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff)
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/LibgcryptMessageDigestImpl.h')
-rw-r--r--src/LibgcryptMessageDigestImpl.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/LibgcryptMessageDigestImpl.h b/src/LibgcryptMessageDigestImpl.h
index 1bec9154..212e09a7 100644
--- a/src/LibgcryptMessageDigestImpl.h
+++ b/src/LibgcryptMessageDigestImpl.h
@@ -38,11 +38,10 @@
#include "common.h"
#include <string>
+#include <memory>
#include <gcrypt.h>
-#include "SharedHandle.h"
-
namespace aria2 {
class MessageDigestImpl {
@@ -58,8 +57,8 @@ private:
public:
~MessageDigestImpl();
- static SharedHandle<MessageDigestImpl> sha1();
- static SharedHandle<MessageDigestImpl> create(const std::string& hashType);
+ static std::shared_ptr<MessageDigestImpl> sha1();
+ static std::shared_ptr<MessageDigestImpl> create(const std::string& hashType);
static bool supports(const std::string& hashType);
static size_t getDigestLength(const std::string& hashType);