Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for 170d3139313231363033303231305a (0.14 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

      @Test fun `utc time`() {
        val bytes = "170d3139313231363033303231305a".decodeHex()
        val utcTime = date("2019-12-16T03:02:10.000+0000").time
        assertThat(Adapters.UTC_TIME.toDer(utcTime)).isEqualTo(bytes)
        assertThat(Adapters.UTC_TIME.fromDer(bytes)).isEqualTo(utcTime)
      }
    
      @Test fun `cannot decode malformed utc time`() {
        val bytes = "170d3139313231362333303231305a".decodeHex()
        assertFailsWith<ProtocolException> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 31.7K bytes
    - Viewed (0)
Back to top