mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-09-12 21:28:25 -04:00
authenticate.c: seed gen_challenge() from /dev/urandom, add an "auth digest" floor to refuse weak negotiated digests, and fstat the opened --password-file fd rather than re-stat the pathname; checksum.c carries auth_digest_rank(). socket.c: reject control bytes in the daemon host before a proxy CONNECT and bind the stunnel server cert to the requested hostname. clientserver/access: warn when proxy-protocol fail-closes. loadparm + daemon-parm: only shell-quote %RSYNC_*% for shell-executed hooks, and add the auth-digest / proxy-protocol-hosts module parameters.
42 lines
938 B
Awk
42 lines
938 B
Awk
#!/usr/bin/awk -f
|
|
|
|
BEGIN {
|
|
while ((getline i < "proto.h") > 0) old_protos = old_protos ? old_protos "\n" i : i
|
|
close("proto.h")
|
|
protos = "/* This file is automatically generated with \"make proto\". DO NOT EDIT */\n"
|
|
}
|
|
|
|
inheader {
|
|
protos = protos "\n" ((inheader = /\)[ \t]*$/ ? 0 : 1) ? $0 : $0 ";")
|
|
next
|
|
}
|
|
|
|
/^FN_(LOCAL|GLOBAL)_[^(]+\([^,()]+/ {
|
|
local = /^FN_LOCAL/
|
|
gsub(/^FN_(LOC|GLOB)AL_|,.*$/, "")
|
|
sub(/^BOOL\(/, "BOOL ")
|
|
sub(/^CHAR\(/, "char ")
|
|
sub(/^INTEGER\(/, "int ")
|
|
sub(/^STRING\(/, "char *")
|
|
sub(/^STRING_SHELL\(/, "char *")
|
|
protos = protos "\n" $0 (local ? "(int module_id);" : "(void);")
|
|
next
|
|
}
|
|
|
|
/^static|^extern|;/||!/^[A-Za-z][A-Za-z0-9_]* / { next }
|
|
|
|
/\(.*\)[ \t]*$/ {
|
|
protos = protos "\n" $0 ";"
|
|
next
|
|
}
|
|
|
|
/\(/ {
|
|
inheader = 1
|
|
protos = protos "\n" $0
|
|
}
|
|
|
|
END {
|
|
if (old_protos != protos) print protos > "proto.h"
|
|
system("touch proto.h-tstamp")
|
|
}
|