| 
									
										
										
										
											2018-10-24 11:24:11 -07:00
										 |  |  | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | 
					
						
							| 
									
										
										
										
											2018-09-20 17:30:26 -07:00
										 |  |  | From: Jeremy Apthorp <nornagon@nornagon.net> | 
					
						
							|  |  |  | Date: Thu, 20 Sep 2018 17:48:05 -0700 | 
					
						
							| 
									
										
										
										
											2019-01-28 13:36:51 -08:00
										 |  |  | Subject: boringssl BUILD.gn | 
					
						
							| 
									
										
										
										
											2018-09-20 17:30:26 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-28 13:36:51 -08:00
										 |  |  | Build BoringSSL with some extra functions that nodejs needs. | 
					
						
							| 
									
										
										
										
											2018-09-20 17:30:26 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-13 22:02:16 -07:00
										 |  |  | diff --git a/third_party/boringssl/BUILD.gn b/third_party/boringssl/BUILD.gn
 | 
					
						
							| 
									
										
										
										
											2023-11-07 07:24:50 -05:00
										 |  |  | index c98f801de361a3c521e790011bef3962b9dfb142..ca177d630a5ad11d97d72a98efdfdc87c6962ae1 100644
 | 
					
						
							| 
									
										
										
										
											2018-09-13 22:02:16 -07:00
										 |  |  | --- a/third_party/boringssl/BUILD.gn
 | 
					
						
							|  |  |  | +++ b/third_party/boringssl/BUILD.gn
 | 
					
						
							| 
									
										
										
										
											2023-11-07 07:24:50 -05:00
										 |  |  | @@ -56,6 +56,21 @@ config("no_asm_config") {
 | 
					
						
							|  |  |  |  all_sources = crypto_sources + ssl_sources + pki_sources + pki_internal_headers | 
					
						
							|  |  |  |  all_headers = crypto_headers + ssl_headers + pki_internal_headers | 
					
						
							| 
									
										
										
										
											2018-09-13 22:02:16 -07:00
										 |  |  |   | 
					
						
							|  |  |  | +if (is_electron_build) {
 | 
					
						
							|  |  |  | +  # Needed to build a nodejs-compatible boringssl.
 | 
					
						
							|  |  |  | +  all_sources += [
 | 
					
						
							|  |  |  | +    "src/decrepit/evp/evp_do_all.c",
 | 
					
						
							|  |  |  | +    "src/decrepit/xts/xts.c",
 | 
					
						
							|  |  |  | +  ]
 | 
					
						
							| 
									
										
										
										
											2019-01-28 13:36:51 -08:00
										 |  |  | +
 | 
					
						
							|  |  |  | +  all_sources += [
 | 
					
						
							| 
									
										
										
										
											2022-01-12 10:44:28 -08:00
										 |  |  | +    "src/decrepit/blowfish/blowfish.c",
 | 
					
						
							|  |  |  | +    "src/decrepit/cfb/cfb.c",
 | 
					
						
							| 
									
										
										
										
											2019-01-28 13:36:51 -08:00
										 |  |  | +    "src/decrepit/ripemd/internal.h",
 | 
					
						
							|  |  |  | +    "src/decrepit/ripemd/ripemd.c",
 | 
					
						
							|  |  |  | +  ]
 | 
					
						
							| 
									
										
										
										
											2018-09-13 22:02:16 -07:00
										 |  |  | +}
 | 
					
						
							| 
									
										
										
										
											2023-11-07 07:24:50 -05:00
										 |  |  | +
 | 
					
						
							| 
									
										
										
										
											2023-05-10 10:47:48 -04:00
										 |  |  |  if (enable_rust_boringssl) { | 
					
						
							|  |  |  |    rust_bindgen("raw_bssl_sys_bindings") { | 
					
						
							| 
									
										
										
										
											2023-11-07 07:24:50 -05:00
										 |  |  |      header = "src/rust/bssl-sys/wrapper.h" |