Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment Client
Merge requests
!7
compatibilty to openssl v3
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
compatibilty to openssl v3
6141-update-for-openssl3
into
master
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Hahn Axel (hahn)
requested to merge
6141-update-for-openssl3
into
master
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
133da06d
1 commit,
2 years ago
2 files
+
8
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
bin/getfile.sh
+
6
−
5
Options
@@ -9,13 +9,14 @@
# 2021-04-13 v1.1 <axel.hahn@iml.unibe.ch> add support for custom config
# 2021-04-15 v1.2 <axel.hahn@iml.unibe.ch> added debugging of curl request
# 2021-10-14 v1.3 <axel.hahn@iml.unibe.ch> add nanoseconds in hashed base data
# 2023-02-14 v1.4 <axel.hahn@unibe.ch> compatibility to openssl v3
# ======================================================================
# ----------------------------------------------------------------------
# CONFIG
# ----------------------------------------------------------------------
version
=
"v1.3"
version
=
"v1.
4
3"
about
=
"CI PACKAGE GETTER
$version
;
(c) 2021 Institute for Medical Education (IML); University of Bern;
GNU GPL 3.0"
@@ -123,7 +124,7 @@ function makeRequest(){
if
[
$bDebug
=
1
]
;
then
echo
$line
echo
$apiMethod
${
apiHost
}${
apiRequest
}
echo
"
$apiMethod
${
apiHost
}${
apiRequest
}
"
echo
$line
fi
@@ -132,7 +133,7 @@ function makeRequest(){
# --- date in http format
LANG
=
en_EN
# export TZ=GMT
apiTS
=
`
date
"+%a, %d %b %Y %H:%M:%S.%N %Z"
`
apiTS
=
$(
date
"+%a, %d %b %Y %H:%M:%S.%N %Z"
)
# --- generate data to hash: method + uri + timestamp; delimited with line break
@@ -147,8 +148,8 @@ ${apiTS}
fi
# generate hash - split in 2 commands (piping "cut" sends additional line break)
myHash
=
`
echo
-n
"
$data
"
| openssl sha1
-hmac
"
${
secret
}
"
|
cut
-f
2
-d
" "
`
myHash
=
`
echo
-n
"
$myHash
"
|
base64
`
myHash
=
$(
echo
-n
"
$data
"
| openssl
dgst
-
sha1
-hex
-hmac
"
${
secret
}
"
|
cut
-f
2
-d
" "
)
myHash
=
$(
echo
-n
"
$myHash
"
|
base64
)
moreheaders
=
"--fail"
test
$bDebug
=
1
&&
moreheaders
=
"-i"
Loading