Commit 7331271d authored by ROOL's avatar ROOL 🤖
Browse files

Show live build date rather than hardwired one

Detail:
  When AcornHTTP is registering on behalf of AcornSSL with the URL module, it makes up an info string using the live version number.
  Use the AcornSSL module date too, rather than that of AcornHTTP.
Admin:
  Submission for TCP/IP bounty.

Version 0.99. Tagged as 'HTTP-0_99'
parent 9ec7d39a
......@@ -13,4 +13,4 @@
| limitations under the License.
|
Dir <Obey$Dir>
amu_machine standalone
amu_machine standalone TARGET=AcornHTTP
/* (0.98)
/* (0.99)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.98
#define Module_MajorVersion_CMHG 0.99
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 19 May 2018
#define Module_Date_CMHG 25 Aug 2018
#define Module_MajorVersion "0.98"
#define Module_Version 98
#define Module_MajorVersion "0.99"
#define Module_Version 99
#define Module_MinorVersion ""
#define Module_Date "19 May 2018"
#define Module_Date "25 Aug 2018"
#define Module_ApplicationDate "19-May-18"
#define Module_ApplicationDate "25-Aug-18"
#define Module_ComponentName "HTTP"
#define Module_ComponentPath "castle/RiscOS/Sources/Networking/Fetchers/HTTP"
#define Module_FullVersion "0.98"
#define Module_HelpVersion "0.98 (19 May 2018)"
#define Module_LibraryVersionInfo "0:98"
#define Module_FullVersion "0.99"
#define Module_HelpVersion "0.99 (25 Aug 2018)"
#define Module_LibraryVersionInfo "0:99"
......@@ -24,6 +24,7 @@
#include <stdlib.h>
#include "kernel.h"
#include "swis.h"
#include "Global/ModHand.h"
#include "sys/errno.h"
#include "HTTPHdr.h"
#include "module.h"
......@@ -100,9 +101,22 @@ static _kernel_oserror *try_to_register_for_https(void)
int ver = security_ssl_available();
if (ver > 0) {
_kernel_oserror *e;
int base;
char info[sizeof("Acorn SSL Acorn 1066 (Built: 14-Oct-1066)")];
const char *help, *bracket = NULL;
e = _swix(OS_Module, _INR(0,1)|_OUT(3), ModHandReason_LookupName, "AcornSSL", &base);
if (e == NULL) {
help = (const char *)(base + *(int *)(base + Module_HelpStr));
bracket = strstr(help, "(");
}
strcpy(info, "Acorn SSL Acorn 1998");
if (bracket) {
strcat(info, " (Built: ");
strcat(info, bracket + 1);
}
e = _swix(URL_PROTOCOL_REGISTER, _INR(0,4), 0, HTTP_SecureGetData, "https:",
ver, Module_Help " (SSL) Acorn 1998 (Built: "
Module_Date ")");
ver, info);
if (e == NULL) {
registered_https = 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment