mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 08:43:55 +01:00
Fix #5 by shortening the cmdline parameters
This commit is contained in:
@ -2,8 +2,11 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
LIB=`pwd`/libexim-encrypt-dlfunc.so
|
# copy to /tmp to keep call to exim under 256 chars (prevent problems on Ubuntu)
|
||||||
CLEARTEXT="X-Originating-IP: [dead:beef:dead:beef:dead:beef:dead:beef]"
|
install -t /tmp libexim-encrypt-dlfunc.so
|
||||||
|
|
||||||
|
LIB=/tmp/libexim-encrypt-dlfunc.so
|
||||||
|
CLEARTEXT="127.88.99.23" # keep short; see above
|
||||||
PASSWORD="`openssl rand -base64 32`"
|
PASSWORD="`openssl rand -base64 32`"
|
||||||
|
|
||||||
CIPHERTEXT=$(exim -be "\${dlfunc{${LIB}}{sodium_crypto_secretbox_encrypt_password}{${PASSWORD}}{${CLEARTEXT}}}")
|
CIPHERTEXT=$(exim -be "\${dlfunc{${LIB}}{sodium_crypto_secretbox_encrypt_password}{${PASSWORD}}{${CLEARTEXT}}}")
|
||||||
|
|||||||
Reference in New Issue
Block a user