Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • videolan/vlc
  • chouquette/vlc
  • bakiewicz.marek122/vlc
  • devnexen/vlc
  • rohanrajpal/vlc
  • blurrrb/vlc
  • gsoc/gsoc2019/darkapex/vlc
  • b1ue/vlc
  • fkuehne/vlc
  • magsoft/vlc
  • chub/vlc
  • cramiro9/vlc
  • robUx4/vlc
  • rom1v/vlc
  • akshayaky/vlc
  • tmk907/vlc
  • akymaster/vlc
  • govind.sharma/vlc
  • psilokos/vlc
  • xjbeta/vlc
  • jahan/vlc
  • 1480c1/vlc
  • amanchande/vlc
  • aaqib/vlc
  • rist/vlc
  • apol/vlc
  • mindfreeze/vlc
  • alexandre-janniaux/vlc
  • sandsmark/vlc
  • jagannatharjun/vlc
  • gsoc/gsoc2020/matiaslgonzalez/vlc
  • gsoc/gsoc2020/jagannatharjun/vlc
  • mstorsjo/vlc
  • gsoc/gsoc2020/vedenta/vlc
  • gsoc/gsoc2020/arnav-ishaan/vlc
  • gsoc/gsoc2020/andreduong/vlc
  • fuzun/vlc
  • gsoc/gsoc2020/vatsin/vlc
  • gsoc/gsoc2020/sagid/vlc
  • yaron/vlc
  • Phoenix/vlc
  • Garf/vlc
  • ePiratWorkarounds/vlc
  • tguillem/vlc
  • jnqnfe/vlc
  • mdc/vlc
  • Vedaa/vlc
  • rasa/vlc
  • quink/vlc
  • yealo/vlc
  • aleksey_ak/vlc
  • ePirat/vlc
  • ilya.yanok/vlc
  • asenat/vlc
  • m/vlc
  • bunjee/vlc
  • BLumia/vlc
  • sagudev/vlc
  • hamedmonji30/vlc
  • nullgemm/vlc
  • DivyamAhuja/vlc
  • thesamesam/vlc
  • dag7/vlc
  • snehil101/vlc
  • haasn/vlc
  • jbk/vlc
  • ValZapod/vlc
  • mfkl/vlc
  • WangChuan/vlc
  • core1024/vlc
  • GhostVaibhav/vlc
  • dfuhrmann/vlc
  • davide.prade/vlc
  • tmatth/vlc
  • Courmisch/vlc
  • zouya/vlc
  • hpi/vlc
  • EwoutH/vlc
  • aleung27/vlc
  • hengwu0/vlc
  • saladin/vlc
  • ashuio/vlc
  • richselwood/vlc
  • verma16Ayush/vlc
  • chemicalflash/vlc
  • PoignardAzur/vlc
  • huangjieNT/vlc
  • Blake-Haydon/vlc
  • AnuthaDev/vlc
  • gsoc/gsoc2021/mpd/vlc
  • nicolas_lequec/vlc
  • sambassaly/vlc
  • thresh/vlc
  • bonniegong/vlc
  • myaashish/vlc
  • stavros.vagionitis/vlc
  • ileoo/vlc
  • louis-santucci/vlc
  • cchristiansen/vlc
  • sabyasachi07/vlc
  • AbduAmeen/vlc
  • ashishb0410/vlc
  • urbanhusky/vlc
  • davidepietrasanta/vlc
  • riksleutelstad/vlc
  • jeremyVignelles/vlc
  • komh/vlc
  • iamjithinjohn/vlc
  • JohannesKauffmann/vlc2
  • kunglao/vlc
  • natzberg/vlc
  • jill/vlc
  • cwendling/vlc
  • adufou/vlc
  • ErwanAirone/vlc
  • HasinduDilshan10/vlc
  • vagrantc/vlc
  • rafiv/macos-bigsur-icon
  • Aymeriic/vlc
  • saranshg20/vlc
  • metzlove24/vlc
  • linkfanel/vlc
  • Ds886/vlc
  • metehan-arslan/vlc
  • Skantes/vlc
  • kgsandundananjaya96/vlc
  • mitchcapper/vlc
  • advaitgupta/vlc
  • StefanBruens/vlc
  • ratajs/vlc
  • T.M.F.B.3761/vlc
  • m222059/vlc
  • casemerrick/vlc
  • joshuaword2alt/vlc
  • sjwaddy/vlc
  • dima/vlc
  • Ybalrid/vlc
  • umxprime/vlc
  • eschmidt/vlc
  • vannieuwenhuysenmichelle/vlc
  • badcf00d/vlc
  • wesinator/vlc
  • louis/vlc
  • xqq/vlc
  • EmperorYP7/vlc
  • NicoLiam/vlc
  • loveleen/vlc
  • rofferom/vlc
  • rbultje/vlc
  • TheUnamed/vlc
  • pratiksharma341/vlc
  • Saurab17/vlc
  • purist.coder/vlc
  • Shuicheng/vlc
  • mdrrubel292/vlc
  • silverbleu00/vlc
  • metif12/vlc
  • asher-m/vlc
  • jeffk/vlc
  • Brandonbr1/vlc
  • beautyyuyanli/vlc
  • rego21/vlc
  • muyangren907/vlc
  • collectionbylawrencejason/vlc
  • evelez/vlc
  • GSMgeeth/vlc
  • Oneric/vlc
  • TJ5/vlc
  • XuanTung95/vlc
  • darrenjenny21/vlc
  • Trenly/vlc
  • RockyTDR/vlc
  • mjakubowski/vlc
  • caprica/vlc
  • ForteFrankie/vlc
  • seannamiller19/vlc
  • junlon2006/vlc
  • kiwiren6666/vlc
  • iuseiphonexs/vlc
  • fenngtun/vlc
  • Rajdutt999/vlc
  • typx/vlc
  • leon.vitanos/vlc
  • robertogarci0938/vlc
  • gsoc/gsoc2022/luc65r/vlc-mpd
  • skeller/vlc
  • MCJack123/vlc
  • luc65r/vlc-mpd
  • popov895/vlc
  • claucambra/vlc
  • brad/vlc
  • matthewmurua88/vlc
  • Tomas8874/vlc
  • philenotfound/vlc
  • makita-do3/vlc
  • LZXCorp/vlc
  • mar0x/vlc
  • senojetkennedy0102/vlc
  • shaneb243/vlc
  • ahmadbader/vlc
  • rajduttcse26/vlc-audio-filters
  • Juniorzito8415/vlc
  • achernyakov/vlc
  • lucasjetgroup/vlc
  • pupdoggy666/vlc
  • gmde9363/vlc
  • alexnwayne/vlc
  • bahareebrahimi781/vlc
  • hamad633666/vlc
  • umghof3112/vlc
  • joe0199771874/vlc
  • Octocats66666666/vlc
  • jjm_223/vlc
  • btech10110.19/vlc
  • sunnykfc028/vlc-audio-filters
  • loic/vlc
  • nguyenminhducmx1/vlc
  • JanekKrueger/vlc
  • bstubbington2/vlc
  • rcombs/vlc
  • Ordissimo/vlc
  • king7532/vlc
  • noobsauce101/vlc
  • schong0525/vlc
  • myQwil/vlc
  • apisbg91/vlc
  • geeboy0101017/vlc
  • kim.faughey/vlc
  • nurupo/vlc
  • yyusea/vlc
  • 0711235879.khco/vlc
  • ialo/vlc
  • iloveyeye2/vlc
  • gdtdftdqtd/vlc
  • leandroconsiglio/vlc
  • AndyHTML2012/vlc
  • ncz/vlc
  • lucenticus/vlc
  • knr1931/vlc
  • kjoonlee/vlc
  • chandrakant100/vlc-qt
  • johge42/vlc
  • polter/vlc
  • hexchain/vlc
  • Tushwrld/vlc
  • mztea928/vlc
  • jbelloncastro/vlc
  • alvinhochun/vlc
  • ghostpiratecrow/vlc
  • ujjwaltwitx/vlc
  • alexsonarin06/vlc
  • adrianbon76/vlc
  • altsod/vlc
  • damien.lucas44/vlc
  • dmytrivtaisa/vlc
  • utk202/vlc
  • aaxhrj/vlc
  • thomas.hermes/vlc
  • structurenewworldorder/vlc
  • slomo/vlc
  • wantlamy/vlc
  • musc.o3cminc/vlc
  • thebarshablog/vlc
  • kerrick/vlc
  • kratos142518/vlc
  • leogps/vlc
  • vacantron/vlc
  • luna_koly/vlc
  • Ratio2/vlc
  • anuoshemohammad/vlc
  • apsun/vlc
  • aaa1115910/vlc
  • alimotmoyo/vlc
  • Ambossmann/vlc
  • Sam-LearnsToCode/vlc
  • Chilledheart/vlc
  • Labnann/vlc
  • ktcoooot1/vlc
  • mohit-marathe/vlc
  • johnddx/vlc
  • manstabuk/vlc
  • Omar-ahmed314/vlc
  • vineethkm/vlc
  • 9Enemi86/vlc
  • radoslav.m.panteleev/vlc
  • ashishami2002/vlc
  • Corbax/vlc
  • firnasahmed/vlc
  • pelayarmalam4/vlc
  • c0ff330k/vlc
  • shikhindahikar/vlc
  • l342723951/vlc
  • christianschwandner/vlc
  • douniwan5788/vlc
  • 7damian7/vlc
  • ferdnyc/vlc
  • f.ales1/vlc
  • pandagby/vlc
  • BaaBaa/vlc
  • jewe37/vlc
  • w00drow/vlc
  • russelltg/vlc
  • ironicallygod/vlc
  • soumyaDghosh/vlc
  • linzihao1999/vlc
  • deyayush6/vlc
  • mibi88/vlc
  • newabdallah10/vlc
  • jhorbincolombia/vlc
  • rimvihaqueshupto/vlc
  • andrewkhon98/vlc
  • fab78/vlc
  • lapaz17/vlc
  • amanna13/vlc
  • mdakram28/vlc
  • 07jw1980/vlc
  • sohamgupta/vlc
  • Eson-Jia1/vlc
  • Sumou/vlc
  • vikram-kangotra/vlc
  • chalice191/vlc
  • olivercalder/vlc
  • aaasg4001/vlc
  • zipdox/vlc
  • kwizart/vlc
  • Dragon-S/vlc
  • jdemeule/vlc
  • gabriel_lt/vlc
  • locutusofborg/vlc
  • sammirata/vlc-librist
  • another/vlc
  • Benjamin_Loison/vlc
  • ahmedmoselhi/vlc
  • petergaal/vlc
  • huynhsontung/vlc
  • dariusmihut/vlc
  • tvermaashutosh/vlc
  • buti/vlc
  • Niram7777/vlc
  • rohan-here/vlc
  • balaji-sivasakthi/vlc
  • rlindner81/vlc
  • Kakadus/vlc
  • djain/vlc
  • ABBurmeister/vlc
  • craighuggins/vlc
  • orbea/vlc
  • maxos/vlc
  • aakarshmj/vlc
  • kblaschke/vlc
  • ankitm/vlc
  • advait-0/vlc
  • mohak2003/vlc
  • yselkowitz/vlc
  • AZM999/vlc-azm
  • andrey.turkin/vlc
  • Disha-Baghel/vlc
  • nowrep/vlc
  • Apeng/vlc
  • Choucroute_melba/vlc
  • autra/vlc
  • eclipseo/vlc
  • fhuber/vlc
  • olafhering/vlc
  • sdasda7777/vlc
  • 1div0/vlc
  • skosnits/vlc-extended-playlist-support
  • dnicolson/vlc
  • Timshel/vlc
  • octopols/vlc
  • MangalK/vlc
  • nima64/vlc
  • misawai/vlc
  • Alexander-Wilms/vlc
  • Maxime2/vlc-fork-for-visualizer
  • ww/vlc
  • jeske/vlc
  • sgross-emlix/vlc
  • morenonatural/vlc
  • freakingLovesVLC/vlc
  • borisgolovnev/vlc
  • mpromonet/vlc
  • diogo.simao-marques/vlc
  • masstock/vlc
  • pratikpatel8982/vlc
  • hugok79/vlc
  • longervision/vlc
  • abhiudaysurya/vlc
  • rishabhgarg/vlc
  • tumic/vlc
  • cart/vlc
  • shubham442/vlc
  • Aditya692005/vlc
  • sammirata/vlc4
  • syrykh/vlc
  • Vvorcun/macos-new-icon
  • AyaanshC/vlc
  • nasso/vlc
  • Quark/vlc
  • sebastinas/vlc
  • rhstone/vlc
  • talregev/vlc
  • Managor/vlc
  • abdsaber000/vlc
  • falbrechtskirchinger/vlc
  • b.sullender/vlc
  • hulxv/vlc
  • zyad-ayad/vlc
408 results
Show changes
Commits on Source (2)
From e09d5f889ce7c00e9ebe6ef0173aa7a27b975646 Mon Sep 17 00:00:00 2001
From: Alexandre Janniaux <ajanni@videolabs.io>
Date: Fri, 24 Apr 2020 10:26:25 +0200
Subject: [PATCH] cipher: Makefile.am: force --tag=CC for .S files
When building the library for armv7 on iOS, the following error prevents
the success of the compilation:
libtool: compile: unable to infer tagged configuration
libtool: error: specify a tag with '--tag'
---
cipher/Makefile.am | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cipher/Makefile.am b/cipher/Makefile.am
index ac0ec58e..a2cb409c 100644
--- a/cipher/Makefile.am
+++ b/cipher/Makefile.am
@@ -125,3 +125,8 @@ tiger.o: $(srcdir)/tiger.c
tiger.lo: $(srcdir)/tiger.c
`echo $(LTCOMPILE) -c $(srcdir)/tiger.c | $(o_flag_munging) `
+
+SUFFIXES = .S
+
+.S.lo:
+ $(LIBTOOL) --mode compile --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) -c -I ../ "$<" -o "$@"
--
2.26.1
From ed41d6d6fb4551342b22ef763de1bd60e964e186 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st>
Date: Thu, 22 Mar 2018 23:32:36 +0200
Subject: [PATCH 1/2] random: Don't assume that _WIN64 implies x86_64
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* random/rndw32.c: Change _WIN64 ifdef into __x86_64__.
--
This fixes building this file for windows on aarch64.
Signed-off-by: Martin Storsjö <martin@martin.st>
---
random/rndw32.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/random/rndw32.c b/random/rndw32.c
index 7e9ac50..08a8867 100644
--- a/random/rndw32.c
+++ b/random/rndw32.c
@@ -986,7 +986,7 @@ _gcry_rndw32_gather_random_fast (void (*add)(const void*, size_t,
On AMD64, TSC is always available and intrinsic is provided for accessing
it. */
-#ifdef __WIN64__
+#ifdef __x86_64__
{
unsigned __int64 aint64;
@@ -1024,7 +1024,7 @@ _gcry_rndw32_gather_random_fast (void (*add)(const void*, size_t,
(*add) (&aword, sizeof (aword), origin );
}
}
-#endif /*__WIN64__*/
+#endif /*__x86_64__*/
}
--
2.7.4
From ec0a2f25c0f64a7b65b373508ce9081e10461965 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st>
Date: Thu, 22 Mar 2018 23:32:37 +0200
Subject: [PATCH 2/2] aarch64: mpi: Fix building the mpi aarch64 assembly for
windows
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* mpi/aarch64/mpih-add1.S: Use ELF macro.
* mpi/aarch64/mpih-mul1.S: Use ELF macro.
* mpi/aarch64/mpih-mul2.S: Use ELF macro.
* mpi/aarch64/mpih-mul3.S: Use ELF macro.
* mpi/aarch64/mpih-sub1.S: Use ELF macro.
* mpi/asm-common-aarch64.h: New.
--
The mpi aarch64 assembly is enabled as soon as the compiler supports
inline assembly, without checking for .type and .size, as is done
for the rest of the assembly in cipher/*.S. (The .type and .size
directives are only supported on ELF.)
Signed-off-by: Martin Storsjö <martin@martin.st>
---
mpi/aarch64/mpih-add1.S | 5 +++--
mpi/aarch64/mpih-mul1.S | 5 +++--
mpi/aarch64/mpih-mul2.S | 5 +++--
mpi/aarch64/mpih-mul3.S | 5 +++--
mpi/aarch64/mpih-sub1.S | 5 +++--
mpi/asm-common-aarch64.h | 30 ++++++++++++++++++++++++++++++
6 files changed, 45 insertions(+), 10 deletions(-)
create mode 100644 mpi/asm-common-aarch64.h
diff --git a/mpi/aarch64/mpih-add1.S b/mpi/aarch64/mpih-add1.S
index fa8cd01..4ead1c2 100644
--- a/mpi/aarch64/mpih-add1.S
+++ b/mpi/aarch64/mpih-add1.S
@@ -22,6 +22,7 @@
#include "sysdep.h"
#include "asm-syntax.h"
+#include "asm-common-aarch64.h"
/*******************
* mpi_limb_t
@@ -34,7 +35,7 @@
.text
.globl _gcry_mpih_add_n
-.type _gcry_mpih_add_n,%function
+ELF(.type _gcry_mpih_add_n,%function)
_gcry_mpih_add_n:
and x5, x3, #3;
adds xzr, xzr, xzr; /* clear carry flag */
@@ -68,4 +69,4 @@ _gcry_mpih_add_n:
.Lend:
adc x0, xzr, xzr;
ret;
-.size _gcry_mpih_add_n,.-_gcry_mpih_add_n;
+ELF(.size _gcry_mpih_add_n,.-_gcry_mpih_add_n;)
diff --git a/mpi/aarch64/mpih-mul1.S b/mpi/aarch64/mpih-mul1.S
index 65e98fe..8a86269 100644
--- a/mpi/aarch64/mpih-mul1.S
+++ b/mpi/aarch64/mpih-mul1.S
@@ -22,6 +22,7 @@
#include "sysdep.h"
#include "asm-syntax.h"
+#include "asm-common-aarch64.h"
/*******************
* mpi_limb_t
@@ -34,7 +35,7 @@
.text
.globl _gcry_mpih_mul_1
-.type _gcry_mpih_mul_1,%function
+ELF(.type _gcry_mpih_mul_1,%function)
_gcry_mpih_mul_1:
and x5, x2, #3;
mov x4, xzr;
@@ -93,4 +94,4 @@ _gcry_mpih_mul_1:
.Lend:
mov x0, x4;
ret;
-.size _gcry_mpih_mul_1,.-_gcry_mpih_mul_1;
+ELF(.size _gcry_mpih_mul_1,.-_gcry_mpih_mul_1;)
diff --git a/mpi/aarch64/mpih-mul2.S b/mpi/aarch64/mpih-mul2.S
index bd3b2c9..c7c08e5 100644
--- a/mpi/aarch64/mpih-mul2.S
+++ b/mpi/aarch64/mpih-mul2.S
@@ -22,6 +22,7 @@
#include "sysdep.h"
#include "asm-syntax.h"
+#include "asm-common-aarch64.h"
/*******************
* mpi_limb_t
@@ -34,7 +35,7 @@
.text
.globl _gcry_mpih_addmul_1
-.type _gcry_mpih_addmul_1,%function
+ELF(.type _gcry_mpih_addmul_1,%function)
_gcry_mpih_addmul_1:
and x5, x2, #3;
mov x6, xzr;
@@ -105,4 +106,4 @@ _gcry_mpih_addmul_1:
.Lend:
mov x0, x6;
ret;
-.size _gcry_mpih_addmul_1,.-_gcry_mpih_addmul_1;
+ELF(.size _gcry_mpih_addmul_1,.-_gcry_mpih_addmul_1;)
diff --git a/mpi/aarch64/mpih-mul3.S b/mpi/aarch64/mpih-mul3.S
index a58bc53..ccc961e 100644
--- a/mpi/aarch64/mpih-mul3.S
+++ b/mpi/aarch64/mpih-mul3.S
@@ -22,6 +22,7 @@
#include "sysdep.h"
#include "asm-syntax.h"
+#include "asm-common-aarch64.h"
/*******************
* mpi_limb_t
@@ -34,7 +35,7 @@
.text
.globl _gcry_mpih_submul_1
-.type _gcry_mpih_submul_1,%function
+ELF(.type _gcry_mpih_submul_1,%function)
_gcry_mpih_submul_1:
and x5, x2, #3;
mov x7, xzr;
@@ -118,4 +119,4 @@ _gcry_mpih_submul_1:
.Loop_end:
cinc x0, x7, cc;
ret;
-.size _gcry_mpih_submul_1,.-_gcry_mpih_submul_1;
+ELF(.size _gcry_mpih_submul_1,.-_gcry_mpih_submul_1;)
diff --git a/mpi/aarch64/mpih-sub1.S b/mpi/aarch64/mpih-sub1.S
index cbf2f08..4a66373 100644
--- a/mpi/aarch64/mpih-sub1.S
+++ b/mpi/aarch64/mpih-sub1.S
@@ -22,6 +22,7 @@
#include "sysdep.h"
#include "asm-syntax.h"
+#include "asm-common-aarch64.h"
/*******************
* mpi_limb_t
@@ -34,7 +35,7 @@
.text
.globl _gcry_mpih_sub_n
-.type _gcry_mpih_sub_n,%function
+ELF(.type _gcry_mpih_sub_n,%function)
_gcry_mpih_sub_n:
and x5, x3, #3;
subs xzr, xzr, xzr; /* prepare carry flag for sub */
@@ -68,4 +69,4 @@ _gcry_mpih_sub_n:
.Lend:
cset x0, cc;
ret;
-.size _gcry_mpih_sub_n,.-_gcry_mpih_sub_n;
+ELF(.size _gcry_mpih_sub_n,.-_gcry_mpih_sub_n;)
diff --git a/mpi/asm-common-aarch64.h b/mpi/asm-common-aarch64.h
new file mode 100644
index 0000000..1269413
--- /dev/null
+++ b/mpi/asm-common-aarch64.h
@@ -0,0 +1,30 @@
+/* asm-common-aarch64.h - Common macros for AArch64 assembly
+ *
+ * Copyright (C) 2018 Martin Storsjö <martin@martin.st>
+ *
+ * This file is part of Libgcrypt.
+ *
+ * Libgcrypt is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * Libgcrypt is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef MPI_ASM_COMMON_AARCH64_H
+#define MPI_ASM_COMMON_AARCH64_H
+
+#ifdef __ELF__
+# define ELF(...) __VA_ARGS__
+#else
+# define ELF(...) /*_*/
+#endif
+
+#endif /* MPI_ASM_COMMON_AARCH64_H */
--
2.7.4
From 95cc768cce8de579d0414830fe1d93c15f9594a7 Mon Sep 17 00:00:00 2001
From: Steve Lhomme <robux4@ycbcr.xyz>
Date: Fri, 19 Jun 2020 10:40:06 +0200
Subject: [PATCH 7/9] random: don't use API's that are forbidden in UWP apps to
init the random generator
---
random/rndw32.c | 29 +++++++++++++++++++++++++----
1 file changed, 25 insertions(+), 4 deletions(-)
diff --git a/random/rndw32.c b/random/rndw32.c
index aefc7275..45d1e7e7 100644
--- a/random/rndw32.c
+++ b/random/rndw32.c
@@ -337,6 +337,7 @@ read_mbm_data (void (*add)(const void*, size_t, enum random_origins),
--- gcrypt/random/rndw32.c.orig 2020-03-03 13:49:52.000000000 +0100
+++ gcrypt/random/rndw32.c 2022-10-12 09:50:46.728155400 +0200
@@ -338,7 +355,11 @@ read_mbm_data (void (*add)(const void*,
HANDLE hMBMData;
SharedData *mbmDataPtr;
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
hMBMData = OpenFileMapping (FILE_MAP_READ, FALSE, "$M$B$M$5$S$D$" );
+#else /* !WINAPI_PARTITION_DESKTOP */
+ hMBMData = NULL;
+#endif /* !WINAPI_PARTITION_DESKTOP */
if (hMBMData)
{
@@ -351,6 +352,7 @@ read_mbm_data (void (*add)(const void*, size_t, enum random_origins),
}
CloseHandle (hMBMData);
mbmDataPtr = (SharedData*)MapViewOfFile (hMBMData, FILE_MAP_READ,0,0,0);
@@ -439,8 +460,12 @@ registry_poll (void (*add)(const void*,
if ( debug_me )
log_debug ("rndw32#slow_gatherer_nt: get perf data\n" );
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
status = RegQueryValueEx (HKEY_PERFORMANCE_DATA, "Global", NULL,
NULL, (LPBYTE) pPerfData, &dwSize);
+#else /* !WINAPI_PARTITION_DESKTOP */
+ status = ERROR_NO_DATA;
+#endif /* !WINAPI_PARTITION_DESKTOP */
if (status == ERROR_SUCCESS)
{
if (!memcmp (pPerfData->Signature, L"PERF", 8))
@@ -473,12 +498,14 @@ registry_poll (void (*add)(const void*,
xfree (pPerfData);
}
+#endif /* WINAPI_PARTITION_DESKTOP */
}
@@ -359,6 +361,7 @@ static void
registry_poll (void (*add)(const void*, size_t, enum random_origins),
enum random_origins requester)
{
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
static int cbPerfData = PERFORMANCE_BUFFER_SIZE;
int iterations;
DWORD dwSize, status;
@@ -478,6 +481,7 @@ registry_poll (void (*add)(const void*, size_t, enum random_origins),
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
/* Although this isn't documented in the Win32 API docs, it's necessary
to explicitly close the HKEY_PERFORMANCE_DATA key after use (it's
implicitly opened on the first call to RegQueryValueEx()). If this
isn't done then any system components which provide performance data
can't be removed or changed while the handle remains active. */
RegCloseKey (HKEY_PERFORMANCE_DATA);
......@@ -44,115 +40,111 @@ index aefc7275..45d1e7e7 100644
}
@@ -496,6 +500,7 @@ slow_gatherer ( void (*add)(const void*, size_t, enum random_origins),
if ( !is_initialized )
{
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
HKEY hKey;
@@ -501,6 +528,7 @@ slow_gatherer ( void (*add)(const void*,
if ( debug_me )
@@ -565,6 +570,10 @@ slow_gatherer ( void (*add)(const void*, size_t, enum random_origins),
if (!pNtQuerySystemInformation || !pNtQueryInformationProcess)
hNTAPI = NULL;
}
+#else /* !WINAPI_PARTITION_DESKTOP */
+ hNetAPI32 = NULL;
+ hNTAPI = NULL;
+#endif /* !WINAPI_PARTITION_DESKTOP */
is_initialized = 1;
@@ -594,6 +603,7 @@ slow_gatherer ( void (*add)(const void*, size_t, enum random_origins),
}
}
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
/* Get disk I/O statistics for all the hard drives. 100 is an
arbitrary failsafe limit. */
for (drive_no = 0; drive_no < 100 ; drive_no++)
@@ -628,6 +638,7 @@ slow_gatherer ( void (*add)(const void*, size_t, enum random_origins),
log_debug ("rndw32#slow_gatherer: init toolkit\n" );
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
/* Find out whether this is an NT server or workstation if necessary */
if (RegOpenKeyEx (HKEY_LOCAL_MACHINE,
"SYSTEM\\CurrentControlSet\\Control\\ProductOptions",
@@ -550,6 +578,7 @@ slow_gatherer ( void (*add)(const void*,
log_debug ("rndw32: No NETAPI found\n" );
}
}
CloseHandle (hDevice);
}
+#endif /* WINAPI_PARTITION_DESKTOP */
/* In theory we should be using the Win32 performance query API to obtain
unpredictable data from the system, however this is so unreliable (see
@@ -786,12 +797,16 @@ _gcry_rndw32_gather_random (void (*add)(const void*, size_t,
if (!is_initialized)
{
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
OSVERSIONINFO osvi = { sizeof( osvi ) };
/* Initialize the NT kernel native API function pointers if necessary */
hNTAPI = GetModuleHandle ("NTDll.dll");
@@ -794,10 +823,12 @@ _gcry_rndw32_gather_random (void (*add)(
if ((s = getenv ("GCRYPT_RNDW32_DBG")) && atoi (s) > 0)
debug_me = 1;
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
GetVersionEx( &osvi );
if (osvi.dwPlatformId != VER_PLATFORM_WIN32_NT)
log_fatal ("can only run on a Windows NT platform\n" );
system_is_w2000 = (osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 0);
+#else /* !WINAPI_PARTITION_DESKTOP */
+ system_is_w2000 = 0;
+#endif /* !WINAPI_PARTITION_DESKTOP */
+#endif /* WINAPI_PARTITION_DESKTOP */
init_system_rng ();
is_initialized = 1;
}
@@ -842,14 +857,11 @@ _gcry_rndw32_gather_random_fast (void (*add)(const void*, size_t,
@@ -856,22 +887,28 @@ _gcry_rndw32_gather_random_fast (void (*
ADDINT((SIZE_T)aptr); \
} while (0)
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
ADDPTR ( GetActiveWindow ());
ADDPTR ( GetCapture ());
ADDPTR ( GetClipboardOwner ());
ADDPTR ( GetClipboardViewer ());
- ADDPTR ( GetCurrentProcess ());
- ADDINT ( GetCurrentProcessId ());
- ADDPTR ( GetCurrentThread ());
- ADDINT ( GetCurrentThreadId ());
+#endif /* WINAPI_PARTITION_DESKTOP */
ADDPTR ( GetCurrentProcess ());
ADDINT ( GetCurrentProcessId ());
ADDPTR ( GetCurrentThread ());
ADDINT ( GetCurrentThreadId ());
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
ADDPTR ( GetDesktopWindow ());
ADDPTR ( GetFocus ());
ADDINT ( GetInputState ());
@@ -858,6 +870,11 @@ _gcry_rndw32_gather_random_fast (void (*add)(const void*, size_t,
ADDINT ( GetMessagePos ());
ADDINT ( GetMessageTime ());
ADDPTR ( GetOpenClipboardWindow ());
+#endif /* WINAPI_PARTITION_DESKTOP */
ADDPTR ( GetProcessHeap ());
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
ADDPTR ( GetProcessWindowStation ());
+#endif /* WINAPI_PARTITION_DESKTOP */
+ ADDPTR ( GetCurrentProcess ());
+ ADDINT ( GetCurrentProcessId ());
+ ADDPTR ( GetCurrentThread ());
+ ADDINT ( GetCurrentThreadId ());
/* Following function in some cases stops returning events, and cannot
be used as an entropy source. */
/*ADDINT ( GetQueueStatus (QS_ALLEVENTS));*/
@@ -871,6 +888,7 @@ _gcry_rndw32_gather_random_fast (void (*add)(const void*, size_t,
@@ -883,6 +920,7 @@ _gcry_rndw32_gather_random_fast (void (*
#undef ADDPTR
}
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
/* Get multiword system information: Current caret position, current
mouse cursor position. */
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
{
POINT point;
@@ -893,6 +931,7 @@ _gcry_rndw32_gather_random_fast (void (*
GetCursorPos (&point);
(*add) ( &point, sizeof (point), origin );
}
+#endif /* WINAPI_PARTITION_DESKTOP */
@@ -922,10 +940,12 @@ _gcry_rndw32_gather_random_fast (void (*add)(const void*, size_t,
/* Get percent of memory in use, bytes of physical memory, bytes of
free physical memory, bytes in paging file, free bytes in paging
@@ -928,6 +967,7 @@ _gcry_rndw32_gather_random_fast (void (*
(*add) ( &kernelTime, sizeof (kernelTime), origin );
(*add) ( &userTime, sizeof (userTime), origin );
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
/* Get the minimum and maximum working set size for the current
process. */
GetProcessWorkingSetSize (handle, &minimumWorkingSetSize,
@@ -935,6 +975,7 @@ _gcry_rndw32_gather_random_fast (void (*
/* On 64-bit system, discard the high 32-bits. */
(*add) ( &minimumWorkingSetSize, sizeof (int), origin );
(*add) ( &maximumWorkingSetSize, sizeof (int), origin );
}
+#endif /* WINAPI_PARTITION_DESKTOP */
}
/* The following are fixed for the lifetime of the process so we only
--- gcrypt/random/rndw32.c.orig 2022-10-12 11:53:15.439098100 +0200
+++ gcrypt/random/rndw32.c 2022-10-12 11:52:37.497979700 +0200
@@ -983,6 +983,7 @@ _gcry_rndw32_gather_random_fast (void (*
* add them once */
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
if (!addedFixedItems)
{
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
STARTUPINFO startupInfo;
@@ -938,6 +958,7 @@ _gcry_rndw32_gather_random_fast (void (*add)(const void*, size_t,
/* Get name of desktop, console window title, new window
@@ -991,6 +992,7 @@ _gcry_rndw32_gather_random_fast (void (*
startupInfo.cb = sizeof (STARTUPINFO);
GetStartupInfo (&startupInfo);
(*add) ( &startupInfo, sizeof (STARTUPINFO), origin );
+#endif /* WINAPI_PARTITION_DESKTOP */
addedFixedItems = 1;
}
+#endif /* WINAPI_PARTITION_DESKTOP */
/* The performance of QPC varies depending on the architecture it's
running on and on the OS, the MS documentation is vague about the
--
2.26.0.windows.1
......@@ -27,7 +27,7 @@ index 45d1e7e7..8b0a38fa 100644
/* When we query the performance counters, we allocate an initial buffer and
@@ -259,6 +262,7 @@ init_system_rng (void)
@@ -260,6 +263,7 @@ init_system_rng (void)
system_rng_available = 0;
hRNGProv = NULL;
......@@ -35,7 +35,7 @@ index 45d1e7e7..8b0a38fa 100644
hAdvAPI32 = GetModuleHandle ("AdvAPI32.dll");
if (!hAdvAPI32)
return;
@@ -274,6 +278,19 @@ init_system_rng (void)
@@ -275,6 +279,19 @@ init_system_rng (void)
This isn't exported by name, so we have to get it by ordinal. */
pRtlGenRandom = (RTLGENRANDOM)
GetProcAddress (hAdvAPI32, "SystemFunction036");
......@@ -59,14 +59,14 @@ diff --git a/src/Makefile.am b/src/Makefile.am
index 3cc4a552..a22acd41 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -123,7 +123,9 @@ libgcrypt_la_LIBADD = $(gcrypt_res) \
../random/librandom.la \
@@ -127,6 +127,10 @@ libgcrypt_la_LIBADD = $(gcrypt_res) \
../mpi/libmpi.la \
../compat/libcompat.la $(GPG_ERROR_LIBS)
-
../compat/libcompat.la $(DL_LIBS) $(GPG_ERROR_LIBS)
+if HAVE_W32_SYSTEM
+libgcrypt_la_LIBADD += -lbcrypt
+endif
+
dumpsexp_SOURCES = dumpsexp.c
dumpsexp_CFLAGS = $(arch_gpg_error_cflags)
......
--- libgcrypt/cipher/rijndael.c.orig 2016-08-25 17:54:33.755153207 +0200
+++ libgcrypt/cipher/rijndael.c 2016-08-25 17:54:36.655151003 +0200
@@ -744,7 +744,7 @@
const void *key = ctx->keyschenc;
uintptr_t rounds = ctx->rounds;
uintptr_t ret;
- asm volatile ("movq %[encT], %%r8\n\t"
+ asm volatile ("movabs %[encT], %%r8\n\t"
"callq *%[ret]\n\t"
: [ret] "=a" (ret),
"+D" (key),
@@ -1127,7 +1127,7 @@
const void *key = ctx->keyschdec;
uintptr_t rounds = ctx->rounds;
uintptr_t ret;
- asm volatile ("movq %[dectabs], %%r8\n\t"
+ asm volatile ("movabs %[dectabs], %%r8\n\t"
"callq *%[ret]\n\t"
: [ret] "=a" (ret),
"+D" (key),
c76d9c9dfb2b831177848b0df7e41d05d1587d28af5322ab0518c9200cdcb1470413940a414036559e7bbed3e24d2e89340f7f06026697f65492c00761cc6385 libgcrypt-1.7.10.tar.bz2
e5ca7966624fff16c3013795836a2c4377f0193dbb4ac5ad2b79654b1fa8992e17d83816569a402212dc8367a7980d4141f5d6ac282bae6b9f02186365b61f13 libgcrypt-1.10.1.tar.bz2
\ No newline at end of file
diff -Naur libgcrypt.orig/mpi/longlong.h libgcrypt/mpi/longlong.h
--- libgcrypt.orig/mpi/longlong.h 2016-06-08 18:18:15.000000000 +0200
+++ libgcrypt/mpi/longlong.h 2016-08-30 12:56:30.751262074 +0200
@@ -890,7 +890,7 @@
************** MIPS/64 **************
***************************************/
#if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64
-# if (__GNUC__ >= 5) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
+# if defined (__clang__) || (__GNUC__ >= 5) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
typedef unsigned int UTItype __attribute__ ((mode (TI)));
# define umul_ppmm(w1, w0, u, v) \
do { \
# GCRYPT
GCRYPT_VERSION := 1.7.10
GCRYPT_VERSION := 1.10.1
GCRYPT_URL := http://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-$(GCRYPT_VERSION).tar.bz2
PKGS += gcrypt
......@@ -16,28 +16,16 @@ gcrypt: libgcrypt-$(GCRYPT_VERSION).tar.bz2 .sum-gcrypt
$(UNPACK)
$(APPLY) $(SRC)/gcrypt/disable-tests-compilation.patch
$(APPLY) $(SRC)/gcrypt/fix-pthread-detection.patch
$(APPLY) $(SRC)/gcrypt/0001-random-Don-t-assume-that-_WIN64-implies-x86_64.patch
$(APPLY) $(SRC)/gcrypt/0002-aarch64-mpi-Fix-building-the-mpi-aarch64-assembly-fo.patch
$(APPLY) $(SRC)/gcrypt/0001-compat-provide-a-getpid-replacement-that-works-on-Wi.patch
$(APPLY) $(SRC)/gcrypt/0007-random-don-t-use-API-s-that-are-forbidden-in-UWP-app.patch
$(APPLY) $(SRC)/gcrypt/0008-random-only-use-wincrypt-in-UWP-builds-if-WINSTORECO.patch
ifdef HAVE_WIN64
$(APPLY) $(SRC)/gcrypt/64bits-relocation.patch
endif
ifeq ($(CC), clang)
ifeq ($(ARCH),mips64el)
$(APPLY) $(SRC)/gcrypt/clang-mips64.patch
endif
endif
# Ensure we can compile the assembly code in cipher, for armv7 ios builds
$(APPLY) $(SRC)/gcrypt/0001-cipher-Makefile.am-force-tag-CC-for-.S-files.patch
$(MOVE)
DEPS_gcrypt = gpg-error $(DEPS_gpg-error)
GCRYPT_CONF = \
--enable-ciphers=aes,des,rfc2268,arcfour \
--enable-digests=sha1,md5,rmd160,sha256,sha512 \
--enable-ciphers=aes,des,rfc2268,arcfour,chacha20 \
--enable-digests=sha1,md5,rmd160,sha256,sha512,blake2 \
--enable-pubkey-ciphers=dsa,rsa,ecc \
--disable-doc
......@@ -54,6 +42,9 @@ GCRYPT_CONF += --disable-aesni-support
ifeq ($(ARCH),aarch64)
GCRYPT_CONF += --disable-asm --disable-arm-crypto-support
endif
ifeq ($(ARCH), x86_64)
GCRYPT_CONF += ac_cv_sys_symbol_underscore=yes
endif
else
ifdef HAVE_BSD
GCRYPT_CONF += --disable-asm --disable-aesni-support
......@@ -72,10 +63,6 @@ endif
endif
.gcrypt: gcrypt
# Reconfiguring this requires a git repo to be available, to
# successfully produce a nonempty mym4_revision_dec.
cd $< && git init && git config --local user.email "cone@example.com" && git config --local user.name "Cony Cone" && \
git commit --allow-empty -m "dummy commit"
$(RECONF)
$(MAKEBUILDDIR)
$(MAKECONFIGURE) $(GCRYPT_CONF)
......
......@@ -20,7 +20,7 @@ default:
variables:
VLC_WIN32_IMAGE: registry.videolan.org/vlc-debian-win32:20220505170026
VLC_WIN64_IMAGE: registry.videolan.org/vlc-debian-win64:20220505172436
VLC_WIN64_IMAGE: registry.videolan.org/vlc-debian-win64:20221011230137
VLC_WIN_LLVM_MSVCRT_IMAGE: registry.videolan.org/vlc-debian-llvm-msvcrt:20220929111544
VLC_WIN_LLVM_UCRT_IMAGE: registry.videolan.org/vlc-debian-llvm-ucrt:20220929134817
VLC_DEBIAN_IMAGE: registry.videolan.org/vlc-debian-unstable:20220720135244
......