소스 검색

Make it obvious that S3_generate_authenticated_query_string is not in use

Source commit: ff606f31a36e796ed09ab7846948aae4a77dc198
Martin Prikryl 6 년 전
부모
커밋
817f5954e9
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      libs/libs3/inc/libs3.h
  2. 2 0
      libs/libs3/src/request.c

+ 2 - 0
libs/libs3/inc/libs3.h

@@ -1830,6 +1830,7 @@ void S3_set_request_context_verify_peer(S3RequestContext *requestContext,
  * S3 Utility Functions
  ************************************************************************** **/
 
+ #ifndef WINSCP
 /**
  * Generates an HTTP authenticated query string, which may then be used by
  * a browser (or other web client) to issue the request.  The request is
@@ -1861,6 +1862,7 @@ S3Status S3_generate_authenticated_query_string
     (char *buffer, const S3BucketContext *bucketContext,
      const char *key, int expires, const char *resource,
      const char *httpMethod);
+#endif
 
 
 /** **************************************************************************

+ 2 - 0
libs/libs3/src/request.c

@@ -1744,6 +1744,7 @@ S3Status request_neon_code_to_status(NeonCode code)
 }
 
 
+#ifndef WINSCP
 S3Status S3_generate_authenticated_query_string
     (char *buffer, const S3BucketContext *bucketContext,
      const char *key, int expires, const char *resource,
@@ -1795,3 +1796,4 @@ S3Status S3_generate_authenticated_query_string
                        bucketContext, computed.urlEncodedKey, resource,
                        queryParams);
 }
+#endif