# from these directories.
push @{$unified_info{includes_extra}->{$obj}}, qw(./quic);
}
- foreach (grep /\[\.ssl\.(?:quic|record|statem)\].*?\.o$/, keys %{$unified_info{sources}}) {
+ foreach (grep /\[\.ssl\.(?:quic|record|statem|rio)\].*?\.o$/, keys %{$unified_info{sources}}) {
my $obj = platform->obj($_);
# Most of the files in [.ssl.record] and [.ssl.statem] include
# "../ssl_local.h", which includes things like "record/record.h".
int port_num;
char name[40];
- snprintf(name, sizeof(name), "*:%s", port); /* port may be "0" */
+ BIO_snprintf(name, sizeof(name), "*:%s", port); /* port may be "0" */
if (verb >= 0 && !log_set_verbosity(prog, verb))
return NULL;
bufbio = BIO_new(BIO_f_buffer());
* generalTime GeneralizedTime }
*/
+#define _XOPEN_SOURCE /* To get a definition of timezone */
+
#include <stdio.h>
#include <time.h>
#include "crypto/asn1.h"
* https://www.openssl.org/source/license.html
*/
+#define _XOPEN_SOURCE_EXTENDED /* To get a definition of strdup() */
+
#include "internal/e_os.h"
#include <stdio.h>
#include <string.h>
* https://www.openssl.org/source/license.html
*/
+#define _XOPEN_SOURCE_EXTENDED /* To get a definition of strdup() */
+
#include <stdio.h>
#include <openssl/crypto.h>
#include "internal/cryptlib.h"
#include "internal/json_enc.h"
#include "internal/nelem.h"
+#include "internal/numbers.h"
#include <string.h>
#include <math.h>
if (!json_pre_item(json))
return;
- if (isnan(value) || isinf(value)) {
- json_raise_error(json);
- return;
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+ {
+ int checks = isnan(value);
+# if !defined(OPENSSL_SYS_VMS)
+ checks |= isinf(value);
+# endif
+
+ if (checks) {
+ json_raise_error(json);
+ return;
+ }
}
+#endif
BIO_snprintf(buf, sizeof(buf), "%1.17g", value);
json_write_str(json, buf);
return &script_info; \
}
+#ifdef OPENSSL_SYS_VMS
+/*
+ * The VMS C compiler recognises \u in strings, and emits a warning, which
+ * stops the build. Because we think we know what we're doing, we change that
+ * particular message to be merely informational.
+ */
+# pragma message informational UCNNOMAP
+#endif
+
#define END_SCRIPT_EXPECTING_S(s) END_SCRIPT_EXPECTING(s, SIZE_MAX)
#define END_SCRIPT_EXPECTING_Q(s) END_SCRIPT_EXPECTING(#s, sizeof(#s) - 1)