diff options
| author | 2026-05-18 08:27:50 -0600 | |
|---|---|---|
| committer | 2026-05-18 08:27:50 -0600 | |
| commit | 4ee8f59d74ae28a9ddda0de59685964b3f06e6e8 (patch) | |
| tree | 4f60f0ad4c80b1ad2a3c77c96c77c128839e4a19 | |
| parent | make sure the hexify doesnt break (diff) | |
fix cronjob make
| -rw-r--r-- | crond.autopeer | 2 | ||||
| -rwxr-xr-x | install.sh | 2 | ||||
| -rw-r--r-- | pam_autopeer/pam_autopeer.c | 4 | ||||
| -rw-r--r-- | pam_autopeer/pam_autopeer.o | bin | 5280 -> 5816 bytes | |||
| -rwxr-xr-x | pam_autopeer/pam_autopeer.so | bin | 16168 -> 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 @@ -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 Binary files differindex e03a7da..6c8d5c7 100644 --- a/pam_autopeer/pam_autopeer.o +++ b/pam_autopeer/pam_autopeer.o diff --git a/pam_autopeer/pam_autopeer.so b/pam_autopeer/pam_autopeer.so Binary files differindex f06eed3..fcb2e37 100755 --- a/pam_autopeer/pam_autopeer.so +++ b/pam_autopeer/pam_autopeer.so |
