Bug 25198: Turn KeyType into an enum
authorMark Watson <watsonm@netflix.com>
Thu, 30 Oct 2014 15:59:14 -0700
changeset 274 859e993ccd8b
parent 273 c837a411bbb3
child 275 c0b3b769b9df
Bug 25198: Turn KeyType into an enum
spec/Overview-WebCryptoAPI.xml
spec/Overview.html
--- a/spec/Overview-WebCryptoAPI.xml	Thu Oct 30 15:57:20 2014 -0700
+++ b/spec/Overview-WebCryptoAPI.xml	Thu Oct 30 15:59:14 2014 -0700
@@ -1083,7 +1083,7 @@
           the user agent.
         </p>
         <x:codeblock language="idl">
-typedef DOMString <a href="#dfn-KeyType">KeyType</a>;
+enum <a href="#dfn-KeyType">KeyType</a> { "public", "private", "secret" };
 
 typedef DOMString <a href="#dfn-KeyUsage">KeyUsage</a>;
 
--- a/spec/Overview.html	Thu Oct 30 15:57:20 2014 -0700
+++ b/spec/Overview.html	Thu Oct 30 15:59:14 2014 -0700
@@ -1088,7 +1088,7 @@
           the user agent.
         </p>
         <div class="block"><div class="blockTitleDiv"><span class="blockTitle">IDL</span></div><div class="blockContent"><pre class="code"><code class="idl-code">
-typedef DOMString <a href="#dfn-KeyType">KeyType</a>;
+enum <a href="#dfn-KeyType">KeyType</a> { "public", "private", "secret" };
 
 typedef DOMString <a href="#dfn-KeyUsage">KeyUsage</a>;