godot/modules
Fabio Alessandrelli f1b2a7d1b4
Fix certificate generation with mbedtls 2.16.8 .
When generating certificates with
`Crypto.generate_self_signed_certificate` we generate the PEM in a
buffer via `mbedtls_x509write_crt_pem`.

Since version 2.16.8, mbedtls adds spurious data at the end of the
buffer due to internal optimizations, this breaks our logic when we try
to immediately parse it and return a proper `X509Certificate` object.

This commit updates the code to find the actual PEM length to parse
using `strlen`, takes extra caution always adding the terminator to the
buffer, and slightly improve error messages.

(cherry picked from commit 60687ce778)
2020-09-15 19:27:48 +02:00
..
arkit Style: Sync other changes from new fix_style.sh and clang_format.sh 2020-07-24 10:39:18 +02:00
assimp Style: Sync other changes from new fix_style.sh and clang_format.sh 2020-07-24 10:39:18 +02:00
bmp Add more error explanations in the BMP image loader 2020-08-21 02:28:17 +02:00
bullet Fix RigidBodyBullet areasWhereIam element shift. 2020-09-14 18:26:19 +01:00
camera Style: Sync other changes from new fix_style.sh and clang_format.sh 2020-07-24 10:39:18 +02:00
csg Reference the online documentation in collision layer/mask properties 2020-08-31 15:55:11 +02:00
cvtt Ensure header guards enclose entire header. 2020-09-04 08:48:35 +02:00
dds DDS: Fix loading files without DDSD_CAPS or DDSD_PIXELFORMAT 2020-06-18 11:29:28 +02:00
enet Fix crash in ENet changing refuse_new_connections 2020-07-29 18:24:12 +02:00
etc SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
freetype SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
gdnative Style: Sync other changes from new fix_style.sh and clang_format.sh 2020-07-24 10:39:18 +02:00
gdscript Several documentation improvements 2020-09-15 19:26:40 +02:00
gridmap Reference the online documentation in collision layer/mask properties 2020-08-31 15:55:11 +02:00
hdr SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
jpg SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
jsonrpc SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
mbedtls Fix certificate generation with mbedtls 2.16.8 . 2020-09-15 19:27:48 +02:00
mobile_vr SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
mono Add mono log message to error for fatal errors 2020-09-14 12:07:12 +02:00
ogg SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
opensimplex SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
opus [macOS, 3.2] Add support for the Apple Silicon (ARM64) build target. 2020-06-29 14:43:29 +03:00
pvr SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
recast SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
regex Document how to perform advanced string splitting using RegEx 2020-07-29 18:24:00 +02:00
squish SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
stb_vorbis stb_vorbis: Increase max alloc buffer size for big Vorbis comments 2020-09-10 12:04:19 +02:00
svg SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
tga Expose loading TGA images in Image. 2020-07-03 13:17:57 +02:00
theora SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
tinyexr SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
upnp SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
vhacd SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
visual_script DocData: Skip language-specific ClassDoc without methods/constants 2020-06-18 11:29:28 +02:00
vorbis SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
webm [macOS, 3.2] Add support for the Apple Silicon (ARM64) build target. 2020-06-29 14:43:29 +03:00
webp SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
webrtc Fix TURN server example in WebRTC documentation 2020-09-08 13:39:18 +02:00
websocket Fix modules with closure compiler. 2020-06-18 09:21:14 +02:00
xatlas_unwrap SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
register_module_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00