Skip to content

Commit

Permalink
Prepare for release 4.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
squarejesse committed Sep 10, 2019
1 parent 9b60ca8 commit 582f8ef
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 10 deletions.
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,47 @@
Change Log
==========

## Version 4.2.0

_2019-09-10_

* New: API to decode a certificate and private key to create a `HeldCertificate`. This accepts a
string containing both a certificate and PKCS #8-encoded private key.

```
val heldCertificate = HeldCertificate.decode("""
|-----BEGIN CERTIFICATE-----
|MIIBYTCCAQegAwIBAgIBKjAKBggqhkjOPQQDAjApMRQwEgYDVQQLEwtlbmdpbmVl
|cmluZzERMA8GA1UEAxMIY2FzaC5hcHAwHhcNNzAwMTAxMDAwMDA1WhcNNzAwMTAx
|MDAwMDEwWjApMRQwEgYDVQQLEwtlbmdpbmVlcmluZzERMA8GA1UEAxMIY2FzaC5h
|cHAwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASda8ChkQXxGELnrV/oBnIAx3dD
|ocUOJfdz4pOJTP6dVQB9U3UBiW5uSX/MoOD0LL5zG3bVyL3Y6pDwKuYvfLNhoyAw
|HjAcBgNVHREBAf8EEjAQhwQBAQEBgghjYXNoLmFwcDAKBggqhkjOPQQDAgNIADBF
|AiAyHHg1N6YDDQiY920+cnI5XSZwEGhAtb9PYWO8bLmkcQIhAI2CfEZf3V/obmdT
|yyaoEufLKVXhrTQhRfodTeigi4RX
|-----END CERTIFICATE-----
|-----BEGIN PRIVATE KEY-----
|MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCA7ODT0xhGSNn4ESj6J
|lu/GJQZoU9lDrCPeUcQ28tzOWw==
|-----END PRIVATE KEY-----
""".trimMargin())
val handshakeCertificates = HandshakeCertificates.Builder()
.heldCertificate(heldCertificate)
.build()
val server = MockWebServer()
server.useHttps(handshakeCertificates.sslSocketFactory(), false)
```
Get these strings with `HeldCertificate.certificatePem()` and `privateKeyPkcs8Pem()`.
* Fix: Handshake now returns peer certificates in canonical order: each certificate is signed by
the certificate that follows and the last certificate is signed by a trusted root.
* Fix: Don't lose HTTP/2 flow control bytes when incoming data races with a stream close. If this
happened enough then eventually the connection would stall.
* Fix: Acknowledge and apply inbound HTTP/2 settings atomically. Previously we had a race where we
could use new flow control capacity before acknowledging it, causing strict HTTP/2 servers to
fail the call.
## Version 4.1.1
_2019-09-05_
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Releases
Our [change log][changelog] has release history.

```kotlin
implementation("com.squareup.okhttp3:okhttp:4.1.1")
implementation("com.squareup.okhttp3:okhttp:4.2.0")
```

Snapshot builds are [available][snap].
Expand All @@ -120,7 +120,7 @@ MockWebServer
OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients.

```kotlin
testImplementation("com.squareup.okhttp3:mockwebserver:4.1.1")
testImplementation("com.squareup.okhttp3:mockwebserver:4.2.0")
```


Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
org.gradle.jvmargs='-Dfile.encoding=UTF-8'

GROUP=com.squareup.okhttp3
VERSION_NAME=4.2.0-SNAPSHOT
VERSION_NAME=4.2.0

POM_URL=https://github.com/square/okhttp
POM_SCM_URL=https://github.com/square/okhttp
Expand Down
2 changes: 1 addition & 1 deletion mockwebserver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ server.setDispatcher(dispatcher);
### Download

```kotlin
testImplementation("com.squareup.okhttp3:mockwebserver:4.1.1")
testImplementation("com.squareup.okhttp3:mockwebserver:4.2.0")
```

### License
Expand Down
2 changes: 1 addition & 1 deletion okhttp-brotli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ OkHttpClient client = new OkHttpClient.Builder()
```

```kotlin
implementation("com.squareup.okhttp3:okhttp-brotli:4.1.1")
implementation("com.squareup.okhttp3:okhttp-brotli:4.2.0")
```

[1]: https://github.com/google/brotli
2 changes: 1 addition & 1 deletion okhttp-dnsoverhttps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ API is not considered stable and may change at any time.
### Download

```kotlin
testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.1.1")
testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.2.0")
```
2 changes: 1 addition & 1 deletion okhttp-logging-interceptor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Download
--------

```kotlin
implementation("com.squareup.okhttp3:logging-interceptor:4.1.1")
implementation("com.squareup.okhttp3:logging-interceptor:4.2.0")
```


Expand Down
2 changes: 1 addition & 1 deletion okhttp-sse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ API is not considered stable and may change at any time.
### Download

```kotlin
testImplementation("com.squareup.okhttp3:okhttp-sse:4.1.1")
testImplementation("com.squareup.okhttp3:okhttp-sse:4.2.0")
```
2 changes: 1 addition & 1 deletion okhttp-tls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Download
--------

```kotlin
implementation("com.squareup.okhttp3:okhttp-tls:4.1.1")
implementation("com.squareup.okhttp3:okhttp-tls:4.2.0")
```

[held_certificate]: http://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-held-certificate/
Expand Down
2 changes: 1 addition & 1 deletion okhttp-urlconnection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ This module integrates OkHttp with `Authenticator` and `CookieHandler` from `jav
### Download

```kotlin
testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.1.1")
testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.2.0")
```

0 comments on commit 582f8ef

Please sign in to comment.