summaryrefslogtreecommitdiffstats
path: root/source4/lib/tls
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij2008-04-081-3/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: source/auth/credentials/config.mk source/auth/gensec/config.mk source/build/smb_build/makefile.pm source/heimdal_build/config.mk source/lib/events/config.mk source/lib/nss_wrapper/config.mk source/lib/policy/config.mk source/lib/registry/config.mk source/lib/socket_wrapper/config.mk source/lib/tdb/config.mk source/lib/tls/config.mk source/lib/util/config.mk source/libcli/config.mk source/libcli/ldap/config.mk source/libnet/config.mk source/librpc/config.mk source/param/config.mk source/rpc_server/config.mk source/scripting/ejs/config.mk source/smbd/process_model.mk (This used to be commit 760378e0294dd0cd4523a83448328478632d7e3d)
| * Rename libsamba-config to libsamba-hostconfig.Jelmer Vernooij2008-04-011-1/+1
| | | | | | | | (This used to be commit c46b7e90e347da76156ddcae4866adb88e9fec21)
* | Move object file lists to the Makefile.Jelmer Vernooij2008-03-031-6/+2
|/ | | | (This used to be commit a7e6d2a1832db388fdafa1279f84c9a8bbfc87d6)
* Make data about what subsystems/libraries are enabled available in the ↵Jelmer Vernooij2008-02-111-1/+3
| | | | | | mkconfig.mk file. (This used to be commit 4cc93a98f984d322e41f403169cfa4945b469935)
* r26238: Add a loadparm context parameter to torture_context, remove more ↵Jelmer Vernooij2007-12-212-18/+17
| | | | | | uses of global_loadparm. (This used to be commit a33a5530545086b81a3b205aa109dff11c546926)
* r25522: Convert to standard bool types.Jelmer Vernooij2007-10-101-39/+39
| | | | (This used to be commit 5e814287ba475e12f8cc934fdd09b199dcdfdb86)
* r25446: Merge some changes I made on the way home from SFO:Jelmer Vernooij2007-10-101-6/+6
| | | | | | | | 2007-09-29 More higher-level passing around of lp_ctx. 2007-09-29 Fix warning. 2007-09-29 Pass loadparm contexts on a higher level. 2007-09-29 Avoid using global loadparm context. (This used to be commit 3468952e771ab31f90b6c374ade01c5550810f42)
* r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij2007-10-101-7/+7
| | | | (This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
* r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij2007-10-101-1/+1
| | | | | | number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
* r25033: Fix includeJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit d81bb09046a7ea65aa916be7fcfa94e86b6191f5)
* r25027: Fix more warnings.Jelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 5085c53fcfade614e83d21fc2c1a5bc43bb2a729)
* r24712: No longer expose the 'BOOL' data type in any interfaces.Jelmer Vernooij2007-10-101-2/+2
| | | | (This used to be commit 1ce32673d960c8b05b6c1b1b99e1976a402417ae)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-103-9/+6
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r19217: Merge from SAMBA_4_0_RELEASE:Andrew Bartlett2007-10-101-1/+2
| | | | | | | | Re-enable TLS in the default configuration. We passed on the build farm because we have an explicit diffie-hilliman parameters file set. Andrew Bartlett (This used to be commit d20ab6a5ed7f980cb653e965c4de3de8d058d9c4)
* r18301: I discovered how to load the warnings from a build farm build intoAndrew Tridgell2007-10-101-2/+4
| | | | | | | | | emacs compile mode (hint, paste to a file, and compile as "cat filename"). This allowed me to fix nearly all the warnings for a IA_64 SuSE build very quickly. (This used to be commit eba6c84efff735bb0ca941ac4b755ce2b0591667)
* r17674: fixed a problem on with our configure logic on systems that haveAndrew Tridgell2007-10-103-5/+5
| | | | | libgnutls but not some of the crt functions (This used to be commit 7a0264c52dd8ab1b1bb321462f66955a866d90a9)
* r17660: fixed configure testAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 28238ad8f15b8bd3c49fb0b235becca25615cfe6)
* r17659: cope with systems without the x509 gnutls functionsAndrew Tridgell2007-10-101-1/+6
| | | | (This used to be commit 8148534d9c9e566c4ecd9b29857fa96916cd9e3f)
* r17412: fix missing colonSimo Sorce2007-10-101-1/+1
| | | | (This used to be commit 300d6e724d1ce386ad53852c0645fa8de374625a)
* r17411: Try and compile on older versions of GnuTLS.Andrew Bartlett2007-10-102-0/+7
| | | | | Andrew Bartlett (This used to be commit 798c0791d8e8d10dde41a6dbceb0866265f9a709)
* r17379: Pre-generate DH parameters, to avoid doing this at runtime in our ↵Andrew Bartlett2007-10-101-2/+16
| | | | | | | testsuite. Andrew Bartlett (This used to be commit 23314c3953676124a2ad06e8b3a3b297c11f2800)
* r17286: Simply fail the tls_initialise if we don't have TLS compiled in.Andrew Bartlett2007-10-101-5/+2
| | | | | | | Adjust the web_server code to cope with this. Andrew Bartlett (This used to be commit 3043969708edbdab58ee57e2fbffa293b6406813)
* r17222: Change the function prototypes for the GENSEc and TLS socket creationAndrew Bartlett2007-10-101-10/+14
| | | | | | | | | | | | routines to return an NTSTATUS. This should help track down errors. Use a bit of talloc_steal and talloc_unlink to get the real socket to be a child of the GENSEC or TLS socket. Always return a new socket, even for the 'pass-though' case. Andrew Bartlett (This used to be commit 003e2ab93c87267ba28cd67bd85975bad62a8ea2)
* r17197: This patch moves the encryption of bulk data on SASL negotiated securityAndrew Bartlett2007-10-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contexts from the application layer into the socket layer. This improves a number of correctness aspects, as we now allow LDAP packets to cross multiple SASL packets. It should also make it much easier to write async LDAP tests from windows clients, as they use SASL by default. It is also vital to allowing OpenLDAP clients to use GSSAPI against Samba4, as it negotiates a rather small SASL buffer size. This patch mirrors the earlier work done to move TLS into the socket layer. Unusual in this pstch is the extra read callback argument I take. As SASL is a layer on top of a socket, it is entirely possible for the SASL layer to drain a socket dry, but for the caller not to have read all the decrypted data. This would leave the system without an event to restart the read (as the socket is dry). As such, I re-invoke the read handler from a timed callback, which should trigger on the next running of the event loop. I believe that the TLS code does require a similar callback. In trying to understand why this is required, imagine a SASL-encrypted LDAP packet in the following formation: +-----------------+---------------------+ | SASL Packet #1 | SASL Packet #2 | ----------------------------------------+ | LDAP Packet #1 | LDAP Packet #2 | ----------------------------------------+ In the old code, this was illegal, but it is perfectly standard SASL-encrypted LDAP. Without the callback, we would read and process the first LDAP packet, and the SASL code would have read the second SASL packet (to decrypt enough data for the LDAP packet), and no data would remain on the socket. Without data on the socket, read events stop. That is why I add timed events, until the SASL buffer is drained. Another approach would be to add a hack to the event system, to have it pretend there remained data to read off the network (but that is ugly). In improving the code, to handle more real-world cases, I've been able to remove almost all the special-cases in the testnonblock code. The only special case is that we must use a deterministic partial packet when calling send, rather than a random length. (1 + n/2). This is needed because of the way the SASL and TLS code works, and the 'resend on failure' requirements. Andrew Bartlett (This used to be commit 5d7c9c12cb2b39673172a357092b80cd814850b0)
* r17174: Enable gnutls code, which requires the HAVE_GNUTLS CPP macro.Andrew Bartlett2007-10-101-0/+3
| | | | | Andrew Bartlett (This used to be commit f3b6e57b2336f36416e25c3a5cd793aa036b5b40)
* r17168: Now that TLS (and soon SASL) is below the socket layer, we need toAndrew Bartlett2007-10-102-3/+5
| | | | | | | | make the testnonblock skip some things. The socket *under* the tls socket is still tested. Andrew Bartlett (This used to be commit 9c33c6a20a77e3f15eac3d62488117517afad940)
* r15854: more talloc_set_destructor() typesafe fixesAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit 61c6100617589ac6df4f527877241464cacbf8b3)
* r15829: we need to include socket.h before we can use enum socket_typeStefan Metzmacher2007-10-101-0/+2
| | | | | | | this fixes a compiler warning metze (This used to be commit dbf82fff10f1b5c3894b9600d98f81ee10e3d876)
* r15538: Use pkg-config file where possible andJelmer Vernooij2007-10-101-13/+14
| | | | | | only fall back to manual tests if that can't be found (for systems that have older versions of gnutls without the .pc file installed) (This used to be commit d77ea8f9072070f47b2b44676facaf66ed40fd17)
* r15400: Move the TLS code behind the socket interface.Andrew Bartlett2007-10-102-81/+164
| | | | | | | | | | | This reduces caller complexity, because the TLS code is now called just like any other socket. (A new socket context is returned by the tls_init_server and tls_init_client routines). When TLS is not available, the original socket is returned. Andrew Bartlett (This used to be commit 09b2f30dfa7a640f5187b4933204e9680be61497)
* r15363: Fix dependencies for shared libraryJelmer Vernooij2007-10-101-2/+3
| | | | (This used to be commit f2ca71f1229f4c20296895116c09bacbd6a53b55)
* r15357: Fix the build on systems without GNUTLS.Andrew Bartlett2007-10-101-2/+2
| | | | | Andrew Bartlett (This used to be commit 2cd2e524e6e1acb2e2921e32c5551f528aa04bf4)
* r15356: Remove unused 'flags' argument from socket_send() and friends.Andrew Bartlett2007-10-101-5/+5
| | | | | | | This is in preperation for making TLS a socket library. Andrew Bartlett (This used to be commit a312812b92f5ac7e6bd2c4af725dbbbc900d4452)
* r15274: Drop default EXT_LIB_ prefix for external libraries. Fixes issues ↵Jelmer Vernooij2007-10-102-2/+2
| | | | | | | with local (empty) libpopt.a overriding global one (This used to be commit 2f06305e53478e5030c24550954f221a9a97c83f)
* r15231: Try to fix detection of ability of CC to generate dependenciesJelmer Vernooij2007-10-101-0/+3
| | | | (This used to be commit 11353d4b47964b762a72ec0e55221811a5a3d550)
* r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacementJelmer Vernooij2007-10-101-1/+1
| | | | | for REQUIRED_SUBSYSTEMS. (This used to be commit adc8a019b6da256f104abed1b82bfde6998a2ac9)
* r14806: Fix compiler warningsJelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit b38a83407717b760c8a7aa3715ab3ca7f637c611)
* r14575: Move some path-related functions to libsamba-config so libsamba-utilJelmer Vernooij2007-10-101-1/+1
| | | | | doesn't have to depend on the lp_* functions. (This used to be commit f97df7d90a41b77a9edd2d6bdc47c27bf1b6bb07)
* r14477: Remove the NOPROTO property - it's no longer used as proto.h is gone.Jelmer Vernooij2007-10-101-1/+0
| | | | (This used to be commit 9c37f847d32d2f327a88c53a90af0c73126b76be)
* r14412: init a varAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit ec53f5fe9617ea36295522a410161bbca6edf9ad)
* r12608: Remove some unused #include lines.Jelmer Vernooij2007-10-101-1/+0
| | | | (This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
* r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not usingJelmer Vernooij2007-10-101-1/+1
| | | | | | | the difference between these at all, and in the future the fact that INIT_OBJ_FILES include smb_build.h will be sufficient to have recompiles at the right time. (This used to be commit b24f2583edee38abafa58578d8b5c4b43e517def)
* r11596: switched the libcli/raw/ code over to using the lib/stream/ genericAndrew Tridgell2007-10-101-0/+4
| | | | | | packet parsing code. This simplifies the logic in the raw client library a fair bit (This used to be commit f8d43f1f67876360e1295d85a3c3702d1d60ed7b)
* r11244: Relative path names in .mk filesJelmer Vernooij2007-10-101-2/+2
| | | | (This used to be commit 24e10300906c380919d2d631bfb3b8fd6b3f54ba)
* r11214: Remove scons files (see ↵Jelmer Vernooij2007-10-101-7/+0
| | | | | | http://lists.samba.org/archive/samba-technical/2005-October/043443.html) (This used to be commit 7fffc5c9178158249be632ac0ca179c13bd1f98f)
* r10586: Add MergedObject() builder. Default to Library() ratherJelmer Vernooij2007-10-101-1/+1
| | | | | then StaticLibrary() (This used to be commit b53313dc517986c69a4e4cb8fe3885b696f8faa1)
* r10377: Save configuration stuff to sconf.cache so it isn't annoyingly runTim Potter2007-10-101-3/+4
| | | | | | | | | | at every single build. Run 'scons configure=1' or delete sconf.cache to force checks to be re-run. Jelmer, I think this stuff is cached in the .sconf_cache directory but the message is still displayed and it looks like it caches the compiled test object file not the actual result of the test. (This used to be commit 9d001dc083937bbf5642af90bc8a8b1a27825de0)
* r10366: More scons fixes. Building et, asn1, lex and yacc files sort-of ↵Jelmer Vernooij2007-10-101-0/+4
| | | | | | works now (This used to be commit 22f18a84242e5e68a2d57b6d7ff77c089ee7434a)
* r10348: Add scons scripts for remaining subsystems. Most subsystems build now,Jelmer Vernooij2007-10-101-1/+0
| | | | | | but final linking still fails (as does generating files asn1, et, idl and proto files) (This used to be commit 4f0d7f75b99c7f4388d8acb0838577d86baf68b5)
* r10336: Add sconscript for a couple more subsystems.Jelmer Vernooij2007-10-101-0/+3
| | | | (This used to be commit 59d4450453c25f5cce9b67b808ff0c4433c1d194)