249 Commits

Author SHA1 Message Date
Jerome Lambourg
de445ebeac Use gnatcoll_core.gpr instead of gnatcoll.gpr
The gnatcoll.gpr is now being phased out, as this involves
gnatcoll_projects.gpr, that is being phased out progressively.

For eng/toolchain/gnatcoll-core#133
2025-08-13 09:34:00 +02:00
Pascal Obry
4aa1b22d76 Rework OS constants to be shared with SSL layer.
This makes it possible to get the proper values of constants
for OpenSSL.

TN eng/toolchain/aws#64
2025-01-28 17:22:40 +01:00
Pascal Obry
a9a69553c1 Use Ada 2022 array aggregate syntax.
Motivated by eng/toolchain/aws#74
2025-01-21 07:56:55 +01:00
Pascal Obry
1f9fa1cba0 Allow for verbose makefile.
Done as for Templates_Parser.

TN eng/toolchain/aws#60
2024-12-02 17:31:38 +00:00
Pascal Obry
990287f4df Revert all Ada 2022 changes. 2024-03-14 23:17:52 +01:00
Pascal Obry
1cf6a7866c Use Ada 2022 array aggregate syntax. 2024-03-14 17:09:44 +00:00
Pascal Obry
dcd2f6d688 Rework build setup to allow for out-of-tree build.
This rework make it possible to build in-tree as before:

   $ make setup
   $ make

And from another directory (out-of-tree build):

   $ cd <build-dir>
   $ make -C ../aws BLD_DIR=$PWD setup
   $ make -C ../aws BLD_DIR=$PWD

To build the demos:

   $ make -C ../aws/demos BLD_DIR=$PWD

Support for the testsuite has also been reworked to use the out-of-tree
build when needed:

   $ make -C ../aws BLD_DIR=$PWD run_regtests
2024-01-19 08:03:17 +00:00
Dmitriy Anisimkov
f05ee6e466 Simplify SSL dynamic optional binding generator
TN: UB30-003

Do not need intermediate SSL.Bind package.
Use function call in Address aspect directly.
Increate maximum line length for regenerated ssl-thin.ads.
2022-02-08 09:57:41 +06:00
Dmitriy Anisimkov
98fff662c1 Dynamic SSL binding
TN: UB30-003
2022-02-04 07:19:40 +06:00
Dmitriy Anisimkov
e14290393d Fix comments 2021-01-16 20:56:43 +06:00
Dmitriy Anisimkov
958f5f9e4b GNUTLS 3.4 compartibility.
* config/ssl/ssl-thin__gnutls.ads:
(GNUTLS_SEC_PARAM_*): constants imported from C wrapper.
(gnutls_rsa_params_t): became subtype of gnutls_x509_privkey_t.
(gnutls_certificate_set_rsa_export_params): Removed.
(gnutls_rsa_params_init): Removed.
(gnutls_rsa_params_deinit): Removed.
(gnutls_rsa_params_cpy): Removed.
(gnutls_rsa_params_import_raw): Removed.
(gnutls_rsa_params_generate2): Removed.
(gnutls_rsa_params_export_raw): Removed.
(gnutls_rsa_params_import_pkcs1): Removed.
(gnutls_x509_privkey_generate): New bound routine.

* ssl/ssl.gpr, config/ssl/gnutls/wrappers.c:
C wrapper for GNUTLS_SEC_PARAM_* constants.

* config/ssl/aws-net-ssl__gnutls.adb:
(Generate_RSA): Use gnutls_x509_privkey_generate instead of
 obsolete gnutls_rsa_params_generate2.
2015-09-23 20:19:04 +06:00
Pascal Obry
4e4159335f Rename makefile to Makefile (GNU standard)
This is also what GPS expects by default.

For O604-017.
2015-06-16 17:20:29 +02:00
Pascal Obry
0b8e5d2e19 Add support for external CFLAGS, ADAFLAGS and LDFLAGS for building.
Contributed by Nicolas Boulenguez.
2014-08-18 11:40:16 +02:00
Dmitriy Anisimkov
6a4a8345d0 Remove gcrypt dependency.
libnettle is the default crypto library since GNUTLS 2.12.
2014-02-05 16:55:07 +01:00
Pascal Obry
49a90d338a Use Ada 2012 aspect instead of pragma.
Part of MA30-042.
2013-12-09 10:50:36 +01:00
Pascal Obry
9f4055b2d8 Rework the installation using gprinstall.
This simplifies the makefile circuitry and will make the maintenance
of this part of the code easier.

For MA30-041.
2013-11-08 13:23:19 +01:00
Emmanuel Briot
ffa1c49d23 Do not use -ldl on freebsd
Fixes link error when enabling openssl support.
Part of MA09-033
2013-10-09 15:58:39 +02:00
Pascal Obry
da09106f7e Add proper support for cross-environments.
This patch makes it possible to build AWS in native and cross
environments from the same tree. That is the build happen now
into .build/<target_name> AWS's root directory. The installation
is also done in specific directories for the cross builds
$prefix/$target.

Moreover generating OS constants and type definitions (in AWS.OS_Lib)
is done using xoscons and a template. This way it is possible to
create AWS.OS_Lib for a cross-target. It is then now possible to
remove the VxWorks specific AWS.OS_Lib (aws-os_lib__vxworks.ads) as
this can now be generated.

Generally this patch fix wrong uses of host kind where target is
meant. Consequently, some clean-ups and simplifications have
occured in makefiles.

For LA06-001.
2012-10-14 21:49:59 +02:00
Pascal Obry
d4f07e3a22 Fix configuration for non SSL setup (standard socket).
Should fix Windows build failure.
Continued work for L725-030.
2012-08-09 20:30:22 +02:00
Pascal Obry
24c4451533 Add some routines into the OpenSSL thin binding.
Those routines will be needed for client certificate verification.

For L725-030.
2012-08-02 22:47:49 +02:00
Pascal Obry
44e99fee75 Move SSL sources into a separate directory.
This is just code reorganisation to fix a build issue on Windows
and VxWorks with recent GNU/TLS changes. Indeed we want to build
gcry.c only if GNU/TLS mode is activated.

The config/makefile has been adjusted accordingly.

For L618-010.
2012-06-18 14:46:01 +02:00
Dmitriy Anisimkov
5d804f03bf Call gcrypt varargs routine over C module. 2012-06-15 18:29:57 +02:00
Pascal Obry
eaff6db33e Move to GPLv3.
For KC20-036.
2012-01-03 18:55:45 +01:00
John Marino
f0b16592c4 Add $DESTDIR functionality to makefiles
All the makefile installation targets have been modified with the
optionally defined $DESTDIR environment variable to support
installation in chroots and package frameworks.
2011-10-09 16:40:28 +02:00
Pascal Obry
7108bc7f27 Qualify project files. 2011-06-06 17:56:11 +02:00