Commit Graph

25536 Commits

Author SHA1 Message Date
674752a723 Merge r1546804, r1553824, r1554192, r1555463, r1555467, r1563417, r1564760, r1565081 from trunk:
Throw away the myCtxVar{Set,Get} abomination and introduce
a pphrase_cb_arg_t struct instead, for passing stuff between
ssl_pphrase_Handle and ssl_pphrase_Handle_CB. Prefer struct
members instead of using additional local variables, to make
the data flow more transparent. (Doesn't "vastly simplify"
the code yet, but hopefully we'll get there when further
stripping down ssl_pphrase_Handle.)


Remove the hardcoded algorithm-type dependency for the SSLCertificateFile
and SSLCertificateKeyFile directives, and deprecate SSLCertificateChainFile

Splitting the patch into smaller pieces turned out to be infeasible,
unfortunately, due to the heavily intertwined code in ssl_engine_config.c,
ssl_engine_init.c and ssl_engine_pphrase.c, which all depends on the
modssl_pk_server_t data structure. For better comprehensibility,
a detailed listing of the changes follows:

ssl_private.h
- drop the X509 certs and EVP_PKEY keys arrays from modssl_pk_server_t
- use apr_array_header_t for cert_files and key_files
- drop tPublicCert from SSLModConfigRec
- drop the ssl_algo_t struct and the SSL_ALGO_* and SSL_AIDX_* constants

ssl_engine_config.c
- change to apr_array_header_t for SSLCertificate[Key]File
- drop ssl_cmd_check_aidx_max, i.e. allow an arbitrary number of certs
  and keys (in theory; currently OpenSSL does not support more than
  one cert/key per algorithm type)
- add deprecation warning for SSLCertificateChainFile

ssl_engine_init.c
- configure server certs/keys in ssl_init_server_certs (no longer via
  ssl_pphrase_Handle in ssl_init_Module)
- in ssl_init_server_certs, read in certificates and keys with standard
  OpenSSL API functions (SSL_CTX_use_*_file), and only fall back to
  ssl_load_encrypted_pkey when encountering an encrypted private key
- drop ssl_server_import_cert, ssl_server_import_key, ssl_init_server_check,
  and ssl_init_ctx_cleanup_server
- move the "problematic re-initialization" check to ssl_init_server_ctx

ssl_engine_pphrase.c
- use servername:port:index as the key identifier, instead of the
  previously used servername:port:algorithm
- ssl_pphrase_Handle overhaul: remove all cert/public-key handling,
  make it only load a single (encrypted) private key, and rename
  to ssl_load_encrypted_pkey
- in the passphrase prompt message, show the private key file name
  instead of the vhost id and the algorithm name
- do no longer supply the algorithm name as an argument to "exec"-type
  passphrase prompting programs

ssl_util.c
- drop ssl_util_algotypeof, ssl_util_algotypestr, ssl_asn1_keystr,
  and ssl_asn1_table_keyfmt

ssl_util_ssl.{c,h}
- drop SSL_read_X509
- constify the filename arg for SSL_read_PrivateKey


CodeWarrior compiler doesnt allow vars as struct inits.


Remove per-certificate chain handling code (obsoleted by
https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=b9fa413a08d436d6b522749b5e808fcd931fd943)


make the ppcb_arg initialization a bit more uniform and easier to read

Followup fix for r1553824:

also pass the file name to ssl_load_encrypted_pkey, to make sure that we
retry with the same filename we used for SSL_CTX_use_PrivateKey_file first


With OpenSSL 1.0.2 or later, enable OCSP stapling in a loop based on
SSL_CTX_set_current_cert(), near the end of ssl_init_server_ctx.


update APLOGNO for r1564760
Submitted by: kbrand, fuankg, kbrand, kbrand, kbrand, kbrand, kbrand
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573360 13f79535-47bb-0310-9956-ffa450edef68
2014-03-02 20:20:14 +00:00
56e539df70 Merge r1572543 from trunk:
Cleanup the client to backend brigade before returning an error (if any) to avoid buckets lifetime issues (backend connection's pool destroyed before request's one). PR 50335.
Suggested by rpluem.

Submitted by: ylavic
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573359 13f79535-47bb-0310-9956-ffa450edef68
2014-03-02 20:18:03 +00:00
7016dfc046 update transformation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573358 13f79535-47bb-0310-9956-ffa450edef68
2014-03-02 20:17:40 +00:00
dd167f524e Merge r1568404 from trunk:
mod_proxy_http: don't recycle backend connections known to be closed (eg. EOS by close).
This saves a useless ap_is_socket_connected() call when reused.

Submitted by: ylavic
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573357 13f79535-47bb-0310-9956-ffa450edef68
2014-03-02 20:17:14 +00:00
080d8e84f1 Merge r1570598 from trunk:
Log an error in mod_proxy_http when reading the request body fails.
Follow-up to r1538776 where incomplete bodies are detected and an error returned through the input filters.


Submitted by: ylavic
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573356 13f79535-47bb-0310-9956-ffa450edef68
2014-03-02 20:16:52 +00:00
9720677a54 * Promote
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573353 13f79535-47bb-0310-9956-ffa450edef68
2014-03-02 20:05:59 +00:00
da44ecb577 Vote.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573335 13f79535-47bb-0310-9956-ffa450edef68
2014-03-02 18:23:36 +00:00
fe740f87e3 vote for 'skip SNI check for forward proxy requests' proposal
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573314 13f79535-47bb-0310-9956-ffa450edef68
2014-03-02 14:33:26 +00:00
31be5a2eea update transformations.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573310 13f79535-47bb-0310-9956-ffa450edef68
2014-03-02 14:06:21 +00:00
a73b68cca6 update for sync with English docs.
Translated by: Nilgün Belma Bugüner <nilgun belgeler.gen.tr>
Reviewed by:  Orhan Berent <berent belgeler.gen.tr>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573309 13f79535-47bb-0310-9956-ffa450edef68
2014-03-02 14:05:36 +00:00
41fac64fb1 update transformations.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573293 13f79535-47bb-0310-9956-ffa450edef68
2014-03-02 12:20:53 +00:00
24e54256f3 update for sync with English docs.
Translated by: Nilgün Belma Bugüner <nilgun belgeler.gen.tr>
Reviewed by:  Orhan Berent <berent belgeler.gen.tr>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573292 13f79535-47bb-0310-9956-ffa450edef68
2014-03-02 12:20:04 +00:00
3be6a27485 Add commit (w/o functional change) to mod_proxy's SNI reuse check backport proposal.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573230 13f79535-47bb-0310-9956-ffa450edef68
2014-03-01 21:44:15 +00:00
00c7132ff2 Remove all in one patch link about mod_deflate's backport bundle.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573228 13f79535-47bb-0310-9956-ffa450edef68
2014-03-01 21:07:36 +00:00
82498ee851 Add a new commit (w/o functional change) on mod_deflate's backport bundle.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573225 13f79535-47bb-0310-9956-ffa450edef68
2014-03-01 20:47:24 +00:00
f33c97af9d Update.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573176 13f79535-47bb-0310-9956-ffa450edef68
2014-03-01 14:00:56 +00:00
77b333ebf5 * Vote and promote
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1573073 13f79535-47bb-0310-9956-ffa450edef68
2014-02-28 20:48:19 +00:00
563433c96a Add a new commit (fix) on the SNI reusability proposal.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1572968 13f79535-47bb-0310-9956-ffa450edef68
2014-02-28 14:52:03 +00:00
4eafb646f2 Propose and vote r1572092 from jkaluza and comment about independency of mod_deflate's patches.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1572939 13f79535-47bb-0310-9956-ffa450edef68
2014-02-28 12:51:27 +00:00
0bc6629906 Propose mod_deflate's r1572655, r1572896 and al to backport.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1572927 13f79535-47bb-0310-9956-ffa450edef68
2014-02-28 11:52:55 +00:00
9f5c87b5da Vote for mod_proxy_http fix
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1572805 13f79535-47bb-0310-9956-ffa450edef68
2014-02-28 02:08:49 +00:00
a6a1579e6b Vote for mod_proxy_http fix
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1572657 13f79535-47bb-0310-9956-ffa450edef68
2014-02-27 16:56:49 +00:00
7fa441460d Propose r1572630 to backport.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1572634 13f79535-47bb-0310-9956-ffa450edef68
2014-02-27 15:44:26 +00:00
aeada1c6f4 votes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1572560 13f79535-47bb-0310-9956-ffa450edef68
2014-02-27 13:39:23 +00:00
d514311f46 Propose r1572543 to backport.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1572551 13f79535-47bb-0310-9956-ffa450edef68
2014-02-27 13:19:01 +00:00
26f33d6d84 Move draft-ietf-httpbis-p1-messaging-23 fixes to proposed backport (was being worked) like in 2.2.x, with my +1 vote.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1572499 13f79535-47bb-0310-9956-ffa450edef68
2014-02-27 10:22:26 +00:00
6f8d11a1b6 update transformation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1572264 13f79535-47bb-0310-9956-ffa450edef68
2014-02-26 21:27:36 +00:00
34743db2a7 * Add proposal
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1572211 13f79535-47bb-0310-9956-ffa450edef68
2014-02-26 19:25:38 +00:00
a3ed8a1b27 Vote.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1571675 13f79535-47bb-0310-9956-ffa450edef68
2014-02-25 13:08:11 +00:00
86012ea2ed Typo in comment (was r1571368)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1571578 13f79535-47bb-0310-9956-ffa450edef68
2014-02-25 06:24:57 +00:00
8279292972 xforms
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1571477 13f79535-47bb-0310-9956-ffa450edef68
2014-02-24 22:43:44 +00:00
4fc2788b19 fix setifempty compat info
http://httpd.apache.org/docs/2.4/mod/mod_headers.html#comment_2245



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1571473 13f79535-47bb-0310-9956-ffa450edef68
2014-02-24 22:38:15 +00:00
ec4a3a6b3b stabilize sort for latex build as well
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570868 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 18:02:35 +00:00
56d76f2bd2 update transformation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570866 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 17:57:32 +00:00
1ba03d0d0f handle duplicate directives by sorting directive lists additionally by module name
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570864 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 17:47:54 +00:00
9488c6608b Updates.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570851 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 15:29:59 +00:00
df81888817 Rebuild
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570757 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 00:17:36 +00:00
24bb393122 update transformation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570687 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 20:01:32 +00:00
7459ae80a8 Merge r1570288 from trunk:
*) mod_rewrite: Add RewriteOptions InheritDown, InheritDownBefore,
     and IgnoreInherit to allow RewriteRules to be pushed from parent scopes
     to child scopes without explicitly configuring each child scope.
     PR56153. 

Submitted By: Edward Lu
Committed By: covener

Submitted by: covener
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570684 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 19:47:26 +00:00
15a4bd05bf ipromote
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570657 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 18:46:03 +00:00
1b1494be6e ivote
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570656 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 18:45:46 +00:00
5e0452dbbf Propose mod_proxy_http easy fixes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570606 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 15:25:57 +00:00
434da2ff36 Backport r1570528
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570530 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 11:13:53 +00:00
71727f8a67 Merge r1542379 from trunk:
PR: 54852. Only use a dummy_connection for idle processes
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570327 13f79535-47bb-0310-9956-ffa450edef68
2014-02-20 19:38:49 +00:00
604d9be750 backported
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570325 13f79535-47bb-0310-9956-ffa450edef68
2014-02-20 19:37:27 +00:00
9e688b7b8d * core: Detect incomplete body in HTTP input filter and return
APR_INCOMPLETE. PR 55475.
     trunk patch: http://svn.apache.org/r1538776
          2.4.x patch: https://people.apache.org/~ylavic/2.4.x-http_filter_incomplete.patch



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570324 13f79535-47bb-0310-9956-ffa450edef68
2014-02-20 19:37:09 +00:00
1ca336b7c4 Merge r1551685 from trunk:
FreeBSD: Disable IPv4-mapped listening sockets by default for versions
5+ instead of just for FreeBSD 5.

PR: 53824

Submitted by: trawick
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570322 13f79535-47bb-0310-9956-ffa450edef68
2014-02-20 19:36:12 +00:00
cca7830f6b Merge r1569615 from trunk:
handle POLLERR/POLLHUP during poll() to avoid high CPU busy loop.

Submitted By: Joffroy Christen <joffroy.christen solvaxis com>, Eric Covener]
Committed By: covener
 

Submitted by: covener
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570321 13f79535-47bb-0310-9956-ffa450edef68
2014-02-20 19:35:39 +00:00
54f44fc929 some votes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570293 13f79535-47bb-0310-9956-ffa450edef68
2014-02-20 18:17:48 +00:00
39be8a15d0 propose mod_rewrite enhancement
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1570291 13f79535-47bb-0310-9956-ffa450edef68
2014-02-20 18:10:33 +00:00