aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar steering72532026-05-18 08:27:50 -0600
committerGravatar steering72532026-05-18 08:27:50 -0600
commit4ee8f59d74ae28a9ddda0de59685964b3f06e6e8 (patch)
tree4f60f0ad4c80b1ad2a3c77c96c77c128839e4a19
parentmake sure the hexify doesnt break (diff)
fix cronjob make
-rw-r--r--crond.autopeer2
-rwxr-xr-xinstall.sh2
-rw-r--r--pam_autopeer/pam_autopeer.c4
-rw-r--r--pam_autopeer/pam_autopeer.obin5280 -> 5816 bytes
-rwxr-xr-xpam_autopeer/pam_autopeer.sobin16168 -> 16200 bytes
5 files changed, 4 insertions, 4 deletions
diff --git a/crond.autopeer b/crond.autopeer
index c582187..6ef4da9 100644
--- a/crond.autopeer
+++ b/crond.autopeer
@@ -1,6 +1,6 @@
47 * * * * root git -c merge.verifysignatures=false -c core.sshcommand="ssh -i /opt/autopeer/id_autopeer" -C /opt/autopeer/dn42-registry pull --quiet
*/5 * * * * root /opt/autopeer/cronjob.py >/dev/null
-0 * * * * root git -C /opt/autopeer pull --quiet; cd /opt/autopeer/pam_autopeer; make
+0 * * * * root git -C /opt/autopeer pull --quiet; cd /opt/autopeer/pam_autopeer; make -q
*/15 * * * * root curl -sfSLR -o /etc/bird/roa_dn42.conf -z /etc/bird/roa_dn42.conf https://dn42.burble.com/roa/dn42_roa_bird2_4.conf && /usr/sbin/birdc configure > /dev/null
*/15 * * * * root curl -sfSLR -o /etc/bird/roa_dn42_v6.conf -z /etc/bird/roa_dn42_v6.conf https://dn42.burble.com/roa/dn42_roa_bird2_6.conf && /usr/sbin/birdc configure > /dev/null
diff --git a/install.sh b/install.sh
index 569c40e..b746b48 100755
--- a/install.sh
+++ b/install.sh
@@ -7,7 +7,7 @@ read -p "Press enter once you've done that..."
apt install -y git # you needed this to clone
apt install -y vim curl wget man-db whois bind9 bind9-dnsutils bird2 # suggestions
-apt install -y python3 wireguard-tools cron socat make libpam-dev gpg # dependencies
+apt install -y python3 wireguard-tools cron socat make libpam-dev gpg libssl-dev # dependencies
ln -s /opt/autopeer/sshd_config /etc/ssh/sshd_config.d/autopeer.conf
systemctl reload ssh
addgroup autopeer
diff --git a/pam_autopeer/pam_autopeer.c b/pam_autopeer/pam_autopeer.c
index 2f9aedb..0de333f 100644
--- a/pam_autopeer/pam_autopeer.c
+++ b/pam_autopeer/pam_autopeer.c
@@ -46,8 +46,8 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **ar
unsigned char nonce[10];
if (RAND_bytes(nonce, 10) != 1) {
- pam_syslog(pamh, LOG_ERR, "Error RAND_bytes: %d", ERR_get_error());
- pam_error(pamh, "Error RAND_bytes: %d", ERR_get_error());
+ pam_syslog(pamh, LOG_ERR, "Error RAND_bytes: %ld", ERR_get_error());
+ pam_error(pamh, "Error RAND_bytes: %ld", ERR_get_error());
return PAM_SYSTEM_ERR;
}
char s_nonce[21];
diff --git a/pam_autopeer/pam_autopeer.o b/pam_autopeer/pam_autopeer.o
index e03a7da..6c8d5c7 100644
--- a/pam_autopeer/pam_autopeer.o
+++ b/pam_autopeer/pam_autopeer.o
Binary files differ
diff --git a/pam_autopeer/pam_autopeer.so b/pam_autopeer/pam_autopeer.so
index f06eed3..fcb2e37 100755
--- a/pam_autopeer/pam_autopeer.so
+++ b/pam_autopeer/pam_autopeer.so
Binary files differ