mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-23 03:34:15 +00:00
Add v4 sig to http cache (#741)
* FS-9676 [mod_http_cache] Support for AWS Signature version 4 and drop support for version 2 Co-authored-by: baonq-me <quocbao747@gmail.com>
This commit is contained in:
1 parent
90fb233ac6
commit
17ebce7e3b
8 files changed
+931
-300
No files matched your search
@@ -1,10 +1,40 @@
|
||||
/*
|
||||
* aws.h for FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
|
||||
* Copyright (C) 2013-2014, Grasshopper
|
||||
*
|
||||
* Version: MPL 1.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is aws.h for FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
|
||||
*
|
||||
* The Initial Developer of the Original Code is Grasshopper
|
||||
* Portions created by the Initial Developer are Copyright (C)
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Chris Rienzo <chris.rienzo@grasshopper.com>
|
||||
* Quoc-Bao Nguyen <baonq5@vng.com.vn>
|
||||
*
|
||||
* common.h - Functions common to the store provider
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef COMMON_H
|
||||
#define COMMON_H
|
||||
|
||||
#include <switch.h>
|
||||
|
||||
/**
|
||||
* An http profile. Defines optional credentials
|
||||
* An http profile. Defines optional credentials
|
||||
* for access to Amazon S3 and Azure Blob Service
|
||||
*/
|
||||
struct http_profile {
|
||||
@@ -12,6 +42,8 @@ struct http_profile {
|
||||
char *aws_s3_access_key_id;
|
||||
char *secret_access_key;
|
||||
char *base_domain;
|
||||
char *region; // AWS region. Used by AWS S3
|
||||
switch_time_t expires; // Expiration time in seconds for URL signature. Default is 604800 seconds. Used by AWS S3
|
||||
switch_size_t bytes_per_block;
|
||||
|
||||
// function to be called to add the profile specific headers to the GET/PUT requests
|
||||
|
||||
Reference in new issue
Block a user