Permalink
Browse files

Initial update with changes made to work as PURE AS3 release

  • Loading branch information...
1 parent bc2d2de commit 584eadfa5856a16c9e11c3259995933b7bbb4250 @jimib committed Mar 4, 2013
Showing with 24,010 additions and 7 deletions.
  1. +0 −6 .gitmodules
  2. +11 −0 README.md
  3. BIN libs/as3corelib.swc
  4. +10 −0 src/IWebSocketWrapper.as
  5. +453 −0 src/WebSocket.as
  6. +88 −0 src/WebSocketMain.as
  7. +19 −0 src/WebSocketMainInsecure.as
  8. +943 −0 src/bridge/FABridge.as
  9. +204 −0 src/com/adobe/net/proxies/RFC2817Socket.as
  10. +375 −0 src/com/gsolo/encryption/MD5.as
  11. +287 −0 src/com/hurlant/crypto/Crypto.as
  12. +3,235 −0 src/com/hurlant/crypto/cert/MozillaRootCertificates.as
  13. +218 −0 src/com/hurlant/crypto/cert/X509Certificate.as
  14. +57 −0 src/com/hurlant/crypto/cert/X509CertificateCollection.as
  15. +82 −0 src/com/hurlant/crypto/hash/HMAC.as
  16. +27 −0 src/com/hurlant/crypto/hash/IHMAC.as
  17. +21 −0 src/com/hurlant/crypto/hash/IHash.as
  18. +137 −0 src/com/hurlant/crypto/hash/MAC.as
  19. +124 −0 src/com/hurlant/crypto/hash/MD2.as
  20. +204 −0 src/com/hurlant/crypto/hash/MD5.as
  21. +106 −0 src/com/hurlant/crypto/hash/SHA1.as
  22. +28 −0 src/com/hurlant/crypto/hash/SHA224.as
  23. +115 −0 src/com/hurlant/crypto/hash/SHA256.as
  24. +71 −0 src/com/hurlant/crypto/hash/SHABase.as
  25. +90 −0 src/com/hurlant/crypto/prng/ARC4.as
  26. +20 −0 src/com/hurlant/crypto/prng/IPRNG.as
  27. +119 −0 src/com/hurlant/crypto/prng/Random.as
  28. +142 −0 src/com/hurlant/crypto/prng/TLSPRF.as
  29. +339 −0 src/com/hurlant/crypto/rsa/RSAKey.as
  30. +2,797 −0 src/com/hurlant/crypto/symmetric/AESKey.as
  31. +375 −0 src/com/hurlant/crypto/symmetric/BlowFishKey.as
  32. +55 −0 src/com/hurlant/crypto/symmetric/CBCMode.as
  33. +61 −0 src/com/hurlant/crypto/symmetric/CFB8Mode.as
  34. +64 −0 src/com/hurlant/crypto/symmetric/CFBMode.as
  35. +58 −0 src/com/hurlant/crypto/symmetric/CTRMode.as
  36. +365 −0 src/com/hurlant/crypto/symmetric/DESKey.as
  37. +86 −0 src/com/hurlant/crypto/symmetric/ECBMode.as
  38. +21 −0 src/com/hurlant/crypto/symmetric/ICipher.as
  39. +15 −0 src/com/hurlant/crypto/symmetric/IMode.as
  40. +32 −0 src/com/hurlant/crypto/symmetric/IPad.as
  41. +21 −0 src/com/hurlant/crypto/symmetric/IStreamCipher.as
  42. +35 −0 src/com/hurlant/crypto/symmetric/ISymmetricKey.as
  43. +110 −0 src/com/hurlant/crypto/symmetric/IVMode.as
  44. +34 −0 src/com/hurlant/crypto/symmetric/NullPad.as
  45. +52 −0 src/com/hurlant/crypto/symmetric/OFBMode.as
  46. +44 −0 src/com/hurlant/crypto/symmetric/PKCS5.as
  47. +44 −0 src/com/hurlant/crypto/symmetric/SSLPad.as
  48. +60 −0 src/com/hurlant/crypto/symmetric/SimpleIVMode.as
  49. +42 −0 src/com/hurlant/crypto/symmetric/TLSPad.as
  50. +88 −0 src/com/hurlant/crypto/symmetric/TripleDESKey.as
  51. +94 −0 src/com/hurlant/crypto/symmetric/XTeaKey.as
  52. +29 −0 src/com/hurlant/crypto/symmetric/aeskey.pl
  53. +2,304 −0 src/com/hurlant/crypto/symmetric/dump.txt
  54. +1,220 −0 src/com/hurlant/crypto/tests/AESKeyTest.as
  55. +58 −0 src/com/hurlant/crypto/tests/ARC4Test.as
  56. +39 −0 src/com/hurlant/crypto/tests/BigIntegerTest.as
  57. +148 −0 src/com/hurlant/crypto/tests/BlowFishKeyTest.as
  58. +160 −0 src/com/hurlant/crypto/tests/CBCModeTest.as
  59. +71 −0 src/com/hurlant/crypto/tests/CFB8ModeTest.as
  60. +98 −0 src/com/hurlant/crypto/tests/CFBModeTest.as
  61. +109 −0 src/com/hurlant/crypto/tests/CTRModeTest.as
  62. +112 −0 src/com/hurlant/crypto/tests/DESKeyTest.as
  63. +151 −0 src/com/hurlant/crypto/tests/ECBModeTest.as
  64. +184 −0 src/com/hurlant/crypto/tests/HMACTest.as
  65. +20 −0 src/com/hurlant/crypto/tests/ITestHarness.as
  66. +56 −0 src/com/hurlant/crypto/tests/MD2Test.as
  67. +58 −0 src/com/hurlant/crypto/tests/MD5Test.as
  68. +101 −0 src/com/hurlant/crypto/tests/OFBModeTest.as
  69. +92 −0 src/com/hurlant/crypto/tests/RSAKeyTest.as
  70. +198 −0 src/com/hurlant/crypto/tests/SHA1Test.as
  71. +58 −0 src/com/hurlant/crypto/tests/SHA224Test.as
  72. +60 −0 src/com/hurlant/crypto/tests/SHA256Test.as
  73. +51 −0 src/com/hurlant/crypto/tests/TLSPRFTest.as
  74. +42 −0 src/com/hurlant/crypto/tests/TestCase.as
  75. +59 −0 src/com/hurlant/crypto/tests/TripleDESKeyTest.as
  76. +66 −0 src/com/hurlant/crypto/tests/XTeaKeyTest.as
  77. +102 −0 src/com/hurlant/crypto/tls/BulkCiphers.as
  78. +117 −0 src/com/hurlant/crypto/tls/CipherSuites.as
  79. +14 −0 src/com/hurlant/crypto/tls/IConnectionState.as
  80. +29 −0 src/com/hurlant/crypto/tls/ISecurityParameters.as
  81. +24 −0 src/com/hurlant/crypto/tls/KeyExchanges.as
  82. +38 −0 src/com/hurlant/crypto/tls/MACs.as
  83. +171 −0 src/com/hurlant/crypto/tls/SSLConnectionState.as
  84. +26 −0 src/com/hurlant/crypto/tls/SSLEvent.as
  85. +340 −0 src/com/hurlant/crypto/tls/SSLSecurityParameters.as
  86. +70 −0 src/com/hurlant/crypto/tls/TLSConfig.as
  87. +151 −0 src/com/hurlant/crypto/tls/TLSConnectionState.as
  88. +895 −0 src/com/hurlant/crypto/tls/TLSEngine.as
  89. +39 −0 src/com/hurlant/crypto/tls/TLSError.as
  90. +27 −0 src/com/hurlant/crypto/tls/TLSEvent.as
  91. +197 −0 src/com/hurlant/crypto/tls/TLSSecurityParameters.as
  92. +370 −0 src/com/hurlant/crypto/tls/TLSSocket.as
  93. +26 −0 src/com/hurlant/crypto/tls/TLSSocketEvent.as
  94. +180 −0 src/com/hurlant/crypto/tls/TLSTest.as
  95. +90 −0 src/com/hurlant/math/BarrettReduction.as
  96. +1,543 −0 src/com/hurlant/math/BigInteger.as
  97. +35 −0 src/com/hurlant/math/ClassicReduction.as
  98. +11 −0 src/com/hurlant/math/IReduction.as
  99. +85 −0 src/com/hurlant/math/MontgomeryReduction.as
  100. +34 −0 src/com/hurlant/math/NullReduction.as
  101. +11 −0 src/com/hurlant/math/bi_internal.as
  102. +25 −0 src/com/hurlant/util/ArrayUtil.as
  103. +189 −0 src/com/hurlant/util/Base64.as
  104. +66 −0 src/com/hurlant/util/Hex.as
  105. +28 −0 src/com/hurlant/util/Memory.as
  106. +43 −0 src/com/hurlant/util/der/ByteString.as
  107. +210 −0 src/com/hurlant/util/der/DER.as
  108. +21 −0 src/com/hurlant/util/der/IAsn1Type.as
  109. +44 −0 src/com/hurlant/util/der/Integer.as
  110. +35 −0 src/com/hurlant/util/der/OID.as
  111. +112 −0 src/com/hurlant/util/der/ObjectIdentifier.as
  112. +118 −0 src/com/hurlant/util/der/PEM.as
  113. +49 −0 src/com/hurlant/util/der/PrintableString.as
  114. +90 −0 src/com/hurlant/util/der/Sequence.as
  115. +27 −0 src/com/hurlant/util/der/Set.as
  116. +94 −0 src/com/hurlant/util/der/Type.as
  117. +60 −0 src/com/hurlant/util/der/UTCTime.as
  118. +256 −0 src/com/jimisaacs/data/URL.as
  119. +163 −0 src/com/jimisaacs/utils/Parameters.as
  120. +133 −0 src/com/jimisaacs/utils/QueryParameters.as
  121. +0 −1 support/web-socket-js
View
@@ -1,6 +0,0 @@
-[submodule "library/support/web-socket-js"]
- path = library/support/web-socket-js
- url = git://github.com/simb/web-socket-js.git
-[submodule "support/web-socket-js"]
- path = support/web-socket-js
- url = git://github.com/simb/web-socket-js.git
View
@@ -1,3 +1,14 @@
+# NOTES
+
+This isn't the original work of Jimib, this has been forked from git://github.com/simb/FlashSocket.IO.git which had an initial dependence on gimite/web-socket-js
+The original project was only compatible with Flex and I needed a pure AS3 solution so I have tinkered the code and replaced a couple of Flex only classes. The most notable substitution has been of the mx.utils.URLUtil with com.jimisaacs.data.URL. The 2 classes are not directly interchangeable so I do expect some problems as a result.
+
+# CREDIT
+
+https://github.com/simb/FlashSocket.IO
+https://github.com/gimite/web-socket-js
+http://jidd.jimisaacs.com/post/url-as3-class/
+
# FlashSocket.IO
Flash library to facilitate communication between Flex applications and Socket.IO servers.
View
BIN libs/as3corelib.swc 100644 → 100755
Binary file not shown.
View
@@ -0,0 +1,10 @@
+package {
+
+ public interface IWebSocketWrapper {
+ function getOrigin():String;
+ function getCallerHost():String;
+ function log(message:String):void;
+ function fatal(message:String):void;
+ function error(message:String):void;
+ }
+}
Oops, something went wrong.

0 comments on commit 584eadf

Please sign in to comment.