Add script spawn minio server to test the URLs against it
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
test
|
||||
test.exe
|
||||
minio
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ifeq ($(shell uname -a),Linux)
|
||||
ifeq ($(shell uname -s),Linux)
|
||||
LFLAGS = -lcrypto
|
||||
else
|
||||
LFLAGS = -lbcrypt
|
||||
|
||||
@@ -241,6 +241,8 @@ static int inplace_hmac(char *buf, int len1, int len2)
|
||||
BCryptCloseAlgorithmProvider(alg, 0);
|
||||
return 0;
|
||||
#else
|
||||
int olen = hmac_len(buf, len1, len2);
|
||||
|
||||
EVP_MAC *mac = EVP_MAC_fetch(NULL, "HMAC", NULL);
|
||||
if (mac == NULL) {
|
||||
return -1;
|
||||
|
||||
@@ -10,11 +10,11 @@ int main(void)
|
||||
S3_S("GET"),
|
||||
3600,
|
||||
S3_S(""),
|
||||
S3_S("accesskey"),
|
||||
S3_S("secretkey"),
|
||||
S3_S("minioadmin"),
|
||||
S3_S("minioadmin"),
|
||||
S3_S("us-west-1"),
|
||||
S3_S("s3"),
|
||||
S3_S("aws.com"),
|
||||
S3_S("172.17.0.2:9000"),
|
||||
time(NULL),
|
||||
dst, sizeof(dst));
|
||||
if (len < 0) {
|
||||
|
||||
Reference in New Issue
Block a user