src/java.base/share/classes/sun/security/ssl/KeyUpdate.java
branchJDK-8145252-TLS13-branch
changeset 56686 07dc566630ee
parent 56660 66c803c3ce32
child 56784 6210466cf1ac
--- a/src/java.base/share/classes/sun/security/ssl/KeyUpdate.java	Thu Jun 07 07:23:15 2018 +0800
+++ b/src/java.base/share/classes/sun/security/ssl/KeyUpdate.java	Wed Jun 06 23:53:47 2018 -0700
@@ -125,8 +125,8 @@
     }
 
     enum KeyUpdateRequest {
-        NOTREQUSTED         ((byte)0, "update_not_requested"),
-        REQUSTED            ((byte)1, "update_requested");
+        NOTREQUESTED        ((byte)0, "update_not_requested"),
+        REQUESTED           ((byte)1, "update_requested");
 
         final byte id;
         final String name;
@@ -169,7 +169,7 @@
         public byte[] produce(ConnectionContext context) throws IOException {
             PostHandshakeContext hc = (PostHandshakeContext)context;
             return handshakeProducer.produce(context,
-                    new KeyUpdateMessage(hc, KeyUpdateRequest.REQUSTED));
+                    new KeyUpdateMessage(hc, KeyUpdateRequest.REQUESTED));
         }
     }
 
@@ -234,10 +234,10 @@
                 return;
             }
 
-            if (km.status == KeyUpdateRequest.REQUSTED) {
+            if (km.status == KeyUpdateRequest.REQUESTED) {
                 // Update the write key and IV.
                 handshakeProducer.produce(hc,
-                    new KeyUpdateMessage(hc, KeyUpdateRequest.NOTREQUSTED));
+                    new KeyUpdateMessage(hc, KeyUpdateRequest.NOTREQUESTED));
             }
 
             // clean handshake context