diff --git a/Cargo.lock b/Cargo.lock index e7113676..6dafc9df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -38,13 +38,23 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "0.7.14" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b476ce7103678b0c6d3d395dbbae31d48ff910bd28be979ba5d48c6351131d0d" +checksum = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04" dependencies = [ "memchr", ] +[[package]] +name = "annotate-snippets" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3b9d411ecbaf79885c6df4d75fff75858d5995ff25385657a28af47e82f9c36" +dependencies = [ + "unicode-width", + "yansi-term", +] + [[package]] name = "ansi_term" version = "0.11.0" @@ -192,7 +202,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0f8523b410d7187a43085e7e064416ea32ded16bd0a4e6fc025e21616d01258f" dependencies = [ "bitflags", - "cexpr", + "cexpr 0.4.0", "clang-sys", "clap", "env_logger 0.8.4", @@ -200,14 +210,38 @@ dependencies = [ "lazycell", "log 0.4.14", "peeking_take_while", - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "regex", "rustc-hash", "shlex", "which 3.1.1", ] +[[package]] +name = "bindgen" +version = "0.65.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfdf7b466f9a4903edc73f95d6d2bcd5baf8ae620638762244d3f60143643cc5" +dependencies = [ + "annotate-snippets", + "bitflags", + "cexpr 0.6.0", + "clang-sys", + "lazy_static", + "lazycell", + "log 0.4.14", + "peeking_take_while", + "prettyplease", + "proc-macro2 1.0.58", + "quote 1.0.27", + "regex", + "rustc-hash", + "shlex", + "syn 2.0.16", + "which 4.4.0", +] + [[package]] name = "bit-vec" version = "0.5.1" @@ -344,7 +378,16 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4aedb84272dbe89af497cf81375129abda4fc0a9e7c5d317498c15cc30c0d27" dependencies = [ - "nom", + "nom 5.1.2", +] + +[[package]] +name = "cexpr" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" +dependencies = [ + "nom 7.1.3", ] [[package]] @@ -684,8 +727,8 @@ checksum = "8e91455b86830a1c21799d94524df0845183fa55bafd9aa137b01c7d1065fa36" dependencies = [ "fnv", "ident_case", - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "strsim 0.10.0", "syn 1.0.81", ] @@ -697,7 +740,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29b5acf0dea37a7f66f7b25d2c5e93fd46f8f6968b1a5d7a3e02e97768afc95a" dependencies = [ "darling_core", - "quote 1.0.10", + "quote 1.0.27", "syn 1.0.81", ] @@ -1022,8 +1065,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22deed3a8124cff5fa835713fa105621e43bbdc46690c3a6b68328a012d350d4" dependencies = [ "proc-macro-error", - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "rustversion", "syn 1.0.81", "synstructure", @@ -1054,8 +1097,8 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", "synstructure", ] @@ -1291,8 +1334,8 @@ checksum = "18e4a4b95cea4b4ccbcf1c5675ca7c4ee4e9e75eb79944d07defde18068f79bb" dependencies = [ "autocfg 1.0.1", "proc-macro-hack", - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] @@ -1992,15 +2035,14 @@ checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" [[package]] name = "mbedtls" -version = "0.9.0" -source = "git+https://github.com/fortanix/rust-mbedtls?branch=master#81b4d8f7ba0ff7246d463b10e2f9484abfd23f63" +version = "0.10.0" +source = "git+https://github.com/fortanix/rust-mbedtls?branch=yx/upgrade-mbedtls#17f91d620de302e20afd5cb94d539fba07fbc7c2" dependencies = [ "bitflags", "byteorder 1.3.4", "cc", "cfg-if 1.0.0", - "chrono", - "mbedtls-selftest", + "mbedtls-platform-support", "mbedtls-sys-auto", "rs-libc 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "serde", @@ -2009,35 +2051,38 @@ dependencies = [ ] [[package]] -name = "mbedtls-selftest" -version = "0.1.0" -source = "git+https://github.com/fortanix/rust-mbedtls?branch=master#81b4d8f7ba0ff7246d463b10e2f9484abfd23f63" +name = "mbedtls-platform-support" +version = "0.2.0" +source = "git+https://github.com/fortanix/rust-mbedtls?branch=yx/upgrade-mbedtls#17f91d620de302e20afd5cb94d539fba07fbc7c2" dependencies = [ "cc", "cfg-if 1.0.0", + "chrono", "mbedtls-sys-auto", + "once_cell", + "zeroize", ] [[package]] name = "mbedtls-sys-auto" -version = "2.28.0" -source = "git+https://github.com/fortanix/rust-mbedtls?branch=master#81b4d8f7ba0ff7246d463b10e2f9484abfd23f63" +version = "3.5.0-alpha.1+0b3de6f" +source = "git+https://github.com/fortanix/rust-mbedtls?branch=yx/upgrade-mbedtls#17f91d620de302e20afd5cb94d539fba07fbc7c2" dependencies = [ - "bindgen", + "bindgen 0.65.1", "cc", "cfg-if 1.0.0", "cmake", "lazy_static", "libc", - "quote 1.0.10", + "quote 1.0.27", "syn 1.0.81", ] [[package]] name = "memchr" -version = "2.3.3" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400" +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "memoffset" @@ -2094,6 +2139,12 @@ dependencies = [ "unicase 2.6.0", ] +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + [[package]] name = "miniz_oxide" version = "0.4.3" @@ -2243,7 +2294,7 @@ version = "1.1.0" source = "git+https://github.com/fortanix/aws-nitro-enclaves-cli.git?branch=main#93193b1317c544ff07dd3ddcc6e126f847449cbb" dependencies = [ "aws-nitro-enclaves-cose 0.1.0", - "bindgen", + "bindgen 0.58.1", "chrono", "clap", "eif_defs", @@ -2331,6 +2382,16 @@ dependencies = [ "version_check 0.9.2", ] +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + [[package]] name = "nsm" version = "0.1.0" @@ -2444,8 +2505,8 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] @@ -2509,9 +2570,9 @@ checksum = "37fd5004feb2ce328a52b0b3d01dbf4ffff72583493900ed15f22d4111c51693" [[package]] name = "once_cell" -version = "1.9.0" +version = "1.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5" +checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" [[package]] name = "opaque-debug" @@ -2729,8 +2790,8 @@ version = "0.4.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65ad2ae56b6abe3a1ee25f15ee605bacadb9a764edaba9c2bf4103800d4a1895" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] @@ -2740,8 +2801,8 @@ version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e8fe8163d14ce7f0cdac2e040116f22eac817edabff0be91e8aff7e9accf389" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] @@ -2799,6 +2860,16 @@ version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c36fa947111f5c62a733b652544dd0016a43ce89619538a8ef92724a6f501a20" +[[package]] +name = "prettyplease" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b69d39aab54d069e7f2fe8cb970493e7834601ca2d8c65fd7bbd183578080d1" +dependencies = [ + "proc-macro2 1.0.58", + "syn 2.0.16", +] + [[package]] name = "proc-macro-error" version = "1.0.4" @@ -2806,8 +2877,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" dependencies = [ "proc-macro-error-attr", - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", "version_check 0.9.2", ] @@ -2818,8 +2889,8 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "version_check 0.9.2", ] @@ -2846,11 +2917,11 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.32" +version = "1.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43" +checksum = "fa1fb82fc0c281dd9671101b66b771ebbe1eaf967b96ac8740dcba4b70005ca8" dependencies = [ - "unicode-xid 0.2.1", + "unicode-ident", ] [[package]] @@ -2885,7 +2956,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6653d384a260fedff0a466e894e05c5b8d75e261a14e9f93e81e43ef86cad23" dependencies = [ "log 0.3.9", - "which 4.0.2", + "which 4.4.0", ] [[package]] @@ -2930,11 +3001,11 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.10" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05" +checksum = "8f4f29d145265ec1c483c7c654450edde0bfe043d3938d6972630663356d9500" dependencies = [ - "proc-macro2 1.0.32", + "proc-macro2 1.0.58", ] [[package]] @@ -3123,14 +3194,13 @@ dependencies = [ [[package]] name = "regex" -version = "1.4.1" +version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8963b85b8ce3074fecffde43b4b0dded83ce2f367dc8d363afc56679f3ee820b" +checksum = "d1a59b5d8e97dee33696bf13c5ba8ab85341c002922fba050069326b9c498974" dependencies = [ "aho-corasick", "memchr", "regex-syntax", - "thread_local", ] [[package]] @@ -3141,9 +3211,9 @@ checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" [[package]] name = "regex-syntax" -version = "0.6.20" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cab7a364d15cde1e505267766a2d3c4e22a843e1a601f0fa7564c0f82ced11c" +checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" [[package]] name = "remove_dir_all" @@ -3294,8 +3364,8 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9bdc5e856e51e685846fb6c13a1f5e5432946c2c90501bdc76a1319f19e29da" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] @@ -3429,8 +3499,8 @@ name = "serde_derive" version = "1.0.130" source = "git+https://github.com/fortanix/serde.git?branch=master#80449547025fc4a016a333e96c0cdaf7e4a96f67" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] @@ -3440,8 +3510,8 @@ version = "1.0.132" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ecc0db5cb2556c0e558887d9bbdcf6ac4471e83ff66cf696e5419024d1606276" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] @@ -3471,8 +3541,8 @@ version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98d0516900518c29efa217c298fa1f4e6c6ffc85ae29fd7f4ee48f176e1a9ed5" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] @@ -3518,8 +3588,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e48b35457e9d855d3dc05ef32a73e0df1e2c0fd72c38796a4ee909160c8eeec2" dependencies = [ "darling", - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] @@ -3783,19 +3853,30 @@ version = "1.0.81" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2afee18b8beb5a596ecb4a2dce128c719b4ba399d34126b9e4396e3f9860966" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "unicode-xid 0.2.1", ] +[[package]] +name = "syn" +version = "2.0.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6f671d4b5ffdb8eadec19c0ae67fe2639df8684bd7bc4b83d986b8db549cf01" +dependencies = [ + "proc-macro2 1.0.58", + "quote 1.0.27", + "unicode-ident", +] + [[package]] name = "synstructure" version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", "unicode-xid 0.2.1", ] @@ -3868,20 +3949,11 @@ version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] -[[package]] -name = "thread_local" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" -dependencies = [ - "lazy_static", -] - [[package]] name = "time" version = "0.1.44" @@ -4015,8 +4087,8 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0c3acc6aa564495a0f2e1d59fab677cd7f81a19994cfc7f3ad0e64301560389" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] @@ -4026,8 +4098,8 @@ version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] @@ -4187,8 +4259,8 @@ version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cc6b8ad3567499f98a1db7a752b07a7c8c7c7c34c332ec00effb2b0027974b7c" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", ] @@ -4270,6 +4342,12 @@ dependencies = [ "matches", ] +[[package]] +name = "unicode-ident" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" + [[package]] name = "unicode-normalization" version = "0.1.13" @@ -4479,8 +4557,8 @@ dependencies = [ "bumpalo", "lazy_static", "log 0.4.14", - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", "wasm-bindgen-shared", ] @@ -4503,7 +4581,7 @@ version = "0.2.80" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17cae7ff784d7e83a2fe7611cfe766ecf034111b49deb850a3dc7699c08251f5" dependencies = [ - "quote 1.0.10", + "quote 1.0.27", "wasm-bindgen-macro-support", ] @@ -4513,8 +4591,8 @@ version = "0.2.80" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99ec0dc7a4756fffc231aab1b9f2f578d23cd391390ab27f952ae0c9b3ece20b" dependencies = [ - "proc-macro2 1.0.32", - "quote 1.0.10", + "proc-macro2 1.0.58", + "quote 1.0.27", "syn 1.0.81", "wasm-bindgen-backend", "wasm-bindgen-shared", @@ -4547,12 +4625,13 @@ dependencies = [ [[package]] name = "which" -version = "4.0.2" +version = "4.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87c14ef7e1b8b8ecfc75d5eca37949410046e66f15d185c01d70824f1f8111ef" +checksum = "2441c784c52b289a054b7201fc93253e288f094e2f4be9058343127c4226a269" dependencies = [ + "either", "libc", - "thiserror", + "once_cell", ] [[package]] @@ -4659,6 +4738,15 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fc79f4a1e39857fc00c3f662cbf2651c771f00e9c15fe2abc341806bd46bd71" +[[package]] +name = "yansi-term" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5c30ade05e61656247b2e334a031dfd0cc466fadef865bdcdea8d537951bf1" +dependencies = [ + "winapi 0.3.9", +] + [[package]] name = "yasna" version = "0.2.2" @@ -4693,3 +4781,9 @@ name = "zero" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f1bc8a6b2005884962297587045002d8cfb8dcec9db332f4ca216ddc5de82c5" + +[[package]] +name = "zeroize" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9" diff --git a/Cargo.toml b/Cargo.toml index 90acffde..dbc8a4e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ exclude = ["examples"] [patch.crates-io] libc = { git = "https://github.com/fortanix/libc.git", branch = "fortanixvme" } -mbedtls = { git = "https://github.com/fortanix/rust-mbedtls", branch = "master" } +mbedtls = { git = "https://github.com/fortanix/rust-mbedtls", branch = "yx/upgrade-mbedtls" } nix = { git = "https://github.com/fortanix/nix.git", branch = "raoul/fortanixvme_r0.20.2" } serde = { git = "https://github.com/fortanix/serde.git", branch = "master" } vsock = { git = "https://github.com/fortanix/vsock-rs.git", branch = "fortanixvme" } diff --git a/em-app/Cargo.toml b/em-app/Cargo.toml index 2a09dee1..edbcb998 100644 --- a/em-app/Cargo.toml +++ b/em-app/Cargo.toml @@ -14,7 +14,7 @@ b64-ct = "0.1.0" em-client = { version = "3.0.0", default-features = false, features = ["client"] } em-node-agent-client = "1.0.0" hyper = { version = "0.10", default-features = false } -mbedtls = { version = "0.9.0", features = [ "rdrand", "std", "force_aesni_support", "mpi_force_c_code" ], default-features = false } +mbedtls = { version = "0.10.0", features = [ "rdrand", "std", "force_aesni_support", "mpi_force_c_code" ], default-features = false } pkix = ">=0.1.2, <0.3.0" rustc-serialize = "0.3.24" diff --git a/em-app/examples/get-certificate/Cargo.toml b/em-app/examples/get-certificate/Cargo.toml index 628e4b32..47a7dbbd 100644 --- a/em-app/examples/get-certificate/Cargo.toml +++ b/em-app/examples/get-certificate/Cargo.toml @@ -7,5 +7,5 @@ license = "MPL-2.0" [dependencies] em-app = { path = "../../" } -mbedtls = { version = "0.9.0", features = [ "rdrand", "std", "force_aesni_support", "mpi_force_c_code" ], default-features = false } +mbedtls = { version = "0.10.0", features = [ "rdrand", "std", "force_aesni_support", "mpi_force_c_code" ], default-features = false } serde_json = "1.0" diff --git a/em-app/examples/harmonize/Cargo.toml b/em-app/examples/harmonize/Cargo.toml index 2eae53bb..156a54c9 100644 --- a/em-app/examples/harmonize/Cargo.toml +++ b/em-app/examples/harmonize/Cargo.toml @@ -8,7 +8,7 @@ license = "MPL-2.0" [dependencies] em-app = { path = "../../" } -mbedtls = { version = "0.9.0", features = [ "rdrand", "std", "force_aesni_support", "mpi_force_c_code" ], default-features = false } +mbedtls = { version = "0.10.0", features = [ "rdrand", "std", "force_aesni_support", "mpi_force_c_code" ], default-features = false } serde_json = "1.0.62" serde = "1.0.123" serde_derive = "1.0.123" diff --git a/em-app/src/utils.rs b/em-app/src/utils.rs index 0a50e731..cf54af7c 100644 --- a/em-app/src/utils.rs +++ b/em-app/src/utils.rs @@ -45,7 +45,7 @@ pub fn get_runtime_configuration( let mut config = Config::new(Endpoint::Client, Transport::Stream, Preset::Default); config.set_rng(Arc::new(mbedtls::rng::Rdrand)); - config.set_min_version(Version::Tls1_2).map_err(|e| format!("TLS configuration failed: {:?}", e))?; + config.set_min_version(Version::Tls12).map_err(|e| format!("TLS configuration failed: {:?}", e))?; if let Some(ca_cert_list) = ca_cert_list { config.set_ca_list(ca_cert_list, ca_crl); @@ -77,7 +77,7 @@ pub fn get_sdkms_dataset( let mut config = Config::new(Endpoint::Client, Transport::Stream, Preset::Default); config.set_rng(Arc::new(mbedtls::rng::Rdrand)); - config.set_min_version(Version::Tls1_2).map_err(|e| format!("TLS configuration failed: {:?}", e))?; + config.set_min_version(Version::Tls12).map_err(|e| format!("TLS configuration failed: {:?}", e))?; if let Some(ca_cert_list) = ca_cert_list { config.set_ca_list(ca_cert_list, ca_crl); @@ -112,7 +112,7 @@ pub fn https_get(url: Url, let mut config = Config::new(Endpoint::Client, Transport::Stream, Preset::Default); config.set_rng(Arc::new(mbedtls::rng::Rdrand)); - config.set_min_version(Version::Tls1_2).map_err(|e| format!("TLS configuration failed: {:?}", e))?; + config.set_min_version(Version::Tls12).map_err(|e| format!("TLS configuration failed: {:?}", e))?; if let Some(ca_cert_list) = ca_cert_list { config.set_ca_list(ca_cert_list, ca_crl); @@ -144,7 +144,7 @@ pub fn https_put(url: Url, let mut config = Config::new(Endpoint::Client, Transport::Stream, Preset::Default); config.set_rng(Arc::new(mbedtls::rng::Rdrand)); - config.set_min_version(Version::Tls1_2).map_err(|e| format!("TLS configuration failed: {:?}", e))?; + config.set_min_version(Version::Tls12).map_err(|e| format!("TLS configuration failed: {:?}", e))?; if let Some(ca_cert_list) = ca_cert_list { config.set_ca_list(ca_cert_list, ca_crl); @@ -222,7 +222,7 @@ pub fn get_mbedtls_hyper_connector_pool(ca_chain: Vec>, client_pki: Opti let mut config = Config::new(Endpoint::Client, Transport::Stream, Preset::Default); config.set_rng(Arc::new(mbedtls::rng::Rdrand)); - config.set_min_version(Version::Tls1_2).map_err(|e| format!("TLS configuration failed: {:?}", e))?; + config.set_min_version(Version::Tls12).map_err(|e| format!("TLS configuration failed: {:?}", e))?; if !ca_chain.is_empty() { let mut list = MbedtlsList::::new(); diff --git a/fortanix-vme/aws-nitro-enclaves/nitro-attestation-verify/Cargo.toml b/fortanix-vme/aws-nitro-enclaves/nitro-attestation-verify/Cargo.toml index 22af7c7b..6c13f8e8 100644 --- a/fortanix-vme/aws-nitro-enclaves/nitro-attestation-verify/Cargo.toml +++ b/fortanix-vme/aws-nitro-enclaves/nitro-attestation-verify/Cargo.toml @@ -10,7 +10,7 @@ serde_cbor = "0.11" # Required until PR36 is accepted # https://github.com/awslabs/aws-nitro-enclaves-cose/pull/36 aws-nitro-enclaves-cose = { version = "0.5.0", git = "https://github.com/fortanix/aws-nitro-enclaves-cose.git", branch = "raoul/crypto_abstraction_pinned", default-features = false } -mbedtls = { version = "0.9.0", features = ["rdrand", "std", "time"], default-features = false, optional = true } +mbedtls = { version = "0.10.0", features = ["rdrand", "std", "time"], default-features = false, optional = true } num-bigint = "0.4" serde = { version = "1.0", features = ["derive"] } serde_bytes = "0.11" diff --git a/intel-sgx/dcap-ql/Cargo.toml b/intel-sgx/dcap-ql/Cargo.toml index f9179ed5..57551586 100644 --- a/intel-sgx/dcap-ql/Cargo.toml +++ b/intel-sgx/dcap-ql/Cargo.toml @@ -45,7 +45,7 @@ byteorder = "1.1.0" # Unlicense/MIT failure = "0.1.1" # MIT/Apache-2.0 lazy_static = "1" # MIT/Apache-2.0 libc = { version = "0.2", optional = true } # MIT/Apache-2.0 -mbedtls = { version = ">=0.8.0, <0.10.0", default-features = false, optional = true } +mbedtls = { version = "0.10.0", default-features = false, optional = true } num = { version = "0.2", optional = true } num-derive = "0.2" # MIT/Apache-2.0 num-traits = "0.2" # MIT/Apache-2.0 @@ -53,7 +53,7 @@ serde = { version = "1.0.104", features = ["derive"], optional = true } # MIT/Ap yasna = { version = "0.3", features = ["num-bigint", "bit-vec"], optional = true } [dev-dependencies] -mbedtls = { version = ">=0.8.0, <0.10.0" } +mbedtls = { version = "0.10.0" } "report-test" = { version = "0.3.1", path = "../report-test" } "sgxs" = { version = "0.7.0", path = "../sgxs" } serde = { version = "1.0.104", features = ["derive"] } diff --git a/intel-sgx/ias/Cargo.toml b/intel-sgx/ias/Cargo.toml index 238c0279..125975a1 100644 --- a/intel-sgx/ias/Cargo.toml +++ b/intel-sgx/ias/Cargo.toml @@ -20,7 +20,7 @@ serde_json = { version = "1", optional = true } serde = { version = "1.0.7", features = ["derive"] } url = "2.2" -mbedtls = { version = ">=0.8.0, <0.10.0", features = ["std"], default-features = false, optional = true } +mbedtls = { version = "0.10.0", features = ["std"], default-features = false, optional = true } pkix = ">=0.1.1, <0.3.0" sgx-isa = { version = "0.4", path = "../sgx-isa" } diff --git a/intel-sgx/sgx-isa/Cargo.toml b/intel-sgx/sgx-isa/Cargo.toml index 9292f697..f4eee0ab 100644 --- a/intel-sgx/sgx-isa/Cargo.toml +++ b/intel-sgx/sgx-isa/Cargo.toml @@ -17,7 +17,7 @@ categories = ["hardware-support"] [dev-dependencies] # External dependencies -mbedtls = { version = ">=0.8.0, <0.10.0", default-features = false, features = ["std"] } +mbedtls = { version = "0.10.0", default-features = false, features = ["std"] } [dependencies] # External dependencies