]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/sts: fixing compilation error caused due to conflict in 63053/head
authorPritha Srivastava <prsrivas@redhat.com>
Mon, 19 May 2025 07:17:42 +0000 (12:47 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Mon, 19 May 2025 07:17:42 +0000 (12:47 +0530)
openssl SHA1() method and using ceph::crypto::SHA1
alias in rgw_torrent.h

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
src/rgw/rgw_torrent.h

index bf2e2217c25317c7524382da5428efb554f03e62..167b392591fe41f3c860958a73d58858cc426665 100644 (file)
@@ -12,8 +12,6 @@
 
 #include "rgw_common.h"
 
-using ceph::crypto::SHA1;
-
 struct req_state;
 
 #define RGW_OBJ_TORRENT    "rgw.torrent"
@@ -107,7 +105,7 @@ private:
 
   req_state *s{nullptr};
   rgw::sal::Driver* driver{nullptr};
-  SHA1 h;
+  ceph::crypto::SHA1 h;
 
   TorrentBencode dencode;
 public:
@@ -134,6 +132,6 @@ private:
   void set_announce();
   void set_exist(bool exist);
   void set_info_pieces(char *buff);
-  void sha1(SHA1 *h, bufferlist &bl, off_t bl_len);
+  void sha1(ceph::crypto::SHA1 *h, bufferlist &bl, off_t bl_len);
   int save_torrent_file(optional_yield y);
 };