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
enet Fix crash in ENet changing refuse_new_connections 2020-07-29 18:24:12 +02:00
etc
freetype
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
jpg
jsonrpc
mbedtls Fix certificate generation with mbedtls 2.16.8 . 2020-09-15 19:27:48 +02:00
mobile_vr
mono Add mono log message to error for fatal errors 2020-09-14 12:07:12 +02:00
ogg
opensimplex
opus [macOS, 3.2] Add support for the Apple Silicon (ARM64) build target. 2020-06-29 14:43:29 +03:00
pvr
recast
regex Document how to perform advanced string splitting using RegEx 2020-07-29 18:24:00 +02:00
squish
stb_vorbis stb_vorbis: Increase max alloc buffer size for big Vorbis comments 2020-09-10 12:04:19 +02:00
svg
tga Expose loading TGA images in Image. 2020-07-03 13:17:57 +02:00
theora
tinyexr
upnp
vhacd
visual_script
vorbis
webm [macOS, 3.2] Add support for the Apple Silicon (ARM64) build target. 2020-06-29 14:43:29 +03:00
webp
webrtc Fix TURN server example in WebRTC documentation 2020-09-08 13:39:18 +02:00
websocket
xatlas_unwrap
register_module_types.h
SCsub