Skip to content

Commit

Permalink
Add Switch.version.mbedtls
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Nov 11, 2023
1 parent 2de116f commit 6c18661
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-geckos-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'nxjs-runtime': patch
---

Add `Switch.version.mbedtls`
1 change: 1 addition & 0 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ int main(int argc, char *argv[])
JSValue version_obj = JS_NewObject(ctx);
JS_SetPropertyStr(ctx, version_obj, "cairo", JS_NewString(ctx, cairo_version_string()));
JS_SetPropertyStr(ctx, version_obj, "freetype2", JS_NewString(ctx, FREETYPE_VERSION_STR));
JS_SetPropertyStr(ctx, version_obj, "mbedtls", JS_NewString(ctx, MBEDTLS_VERSION_STRING));
JS_SetPropertyStr(ctx, version_obj, "nxjs", JS_NewString(ctx, NXJS_VERSION));
JS_SetPropertyStr(ctx, version_obj, "png", JS_NewString(ctx, PNG_LIBPNG_VER_STRING));
JS_SetPropertyStr(ctx, version_obj, "quickjs", JS_NewString(ctx, QUICKJS_VERSION));
Expand Down
1 change: 1 addition & 0 deletions source/tls.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once
#include <mbedtls/net_sockets.h>
#include <mbedtls/ssl.h>
#include <mbedtls/version.h>
#include "types.h"

typedef struct
Expand Down

0 comments on commit 6c18661

Please sign in to comment.