Module: kamailio
Branch: master
Commit: d26ccdea61230bfc7720a2523c7b6dd8d2692d6d
URL:
https://github.com/kamailio/kamailio/commit/d26ccdea61230bfc7720a2523c7b6dd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-16T15:20:45+02:00
core: define macro for signature to be used for server and user-agent
---
Modified: src/core/config.h
---
Diff:
https://github.com/kamailio/kamailio/commit/d26ccdea61230bfc7720a2523c7b6dd…
Patch:
https://github.com/kamailio/kamailio/commit/d26ccdea61230bfc7720a2523c7b6dd…
---
diff --git a/src/core/config.h b/src/core/config.h
index 63ff8dc26c..e35fd6daba 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -79,12 +79,15 @@
#define CONTENT_LENGTH "Content-Length: "
#define CONTENT_LENGTH_LEN (sizeof(CONTENT_LENGTH)-1)
-#define USER_AGENT "User-Agent: " NAME \
+#define SRVAPP_SIGNATURE NAME \
" (" VERSION " (" ARCH "/" OS_QUOTED "))"
+#define SRVAPP_SIGNATURE_LEN (sizeof(SRVAPP_SIGNATURE)-1)
+
+
+#define USER_AGENT "User-Agent: " SRVAPP_SIGNATURE
#define USER_AGENT_LEN (sizeof(USER_AGENT)-1)
-#define SERVER_HDR "Server: " NAME \
- " (" VERSION " (" ARCH "/" OS_QUOTED "))"
+#define SERVER_HDR "Server: " SRVAPP_SIGNATURE
#define SERVER_HDR_LEN (sizeof(SERVER_HDR)-1)
#define MAX_WARNING_LEN 256