aboutsummaryrefslogtreecommitdiff
path: root/drivers/builtin_openssl/crypto/comp/c_rle.c
diff options
context:
space:
mode:
authorJuan Linietsky2014-08-01 22:10:38 -0300
committerJuan Linietsky2014-08-01 22:10:38 -0300
commit678948068bbde7f12a9c5f28a467b6cf4d127851 (patch)
tree75572f3a5cc6089a6ca3046e9307d0a7c0b72c51 /drivers/builtin_openssl/crypto/comp/c_rle.c
parent9ff6d55822647c87eef392147ea15641d0922d47 (diff)
downloadgodot-678948068bbde7f12a9c5f28a467b6cf4d127851.tar.gz
godot-678948068bbde7f12a9c5f28a467b6cf4d127851.tar.zst
godot-678948068bbde7f12a9c5f28a467b6cf4d127851.zip
Small Issues & Maintenance
-=-=-=-=-=-=-=-=-=-=-=-=-= -Begin work on Navigation Meshes (simple pathfinding for now, will improve soon) -More doc on theme overriding -Upgraded OpenSSL to version without bugs -Misc bugfixes
Diffstat (limited to 'drivers/builtin_openssl/crypto/comp/c_rle.c')
-rw-r--r--drivers/builtin_openssl/crypto/comp/c_rle.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/drivers/builtin_openssl/crypto/comp/c_rle.c b/drivers/builtin_openssl/crypto/comp/c_rle.c
deleted file mode 100644
index 47dfb67fb..000000000
--- a/drivers/builtin_openssl/crypto/comp/c_rle.c
+++ /dev/null
@@ -1,61 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <openssl/objects.h>
-#include <openssl/comp.h>
-
-static int rle_compress_block(COMP_CTX *ctx, unsigned char *out,
- unsigned int olen, unsigned char *in, unsigned int ilen);
-static int rle_expand_block(COMP_CTX *ctx, unsigned char *out,
- unsigned int olen, unsigned char *in, unsigned int ilen);
-
-static COMP_METHOD rle_method={
- NID_rle_compression,
- LN_rle_compression,
- NULL,
- NULL,
- rle_compress_block,
- rle_expand_block,
- NULL,
- NULL,
- };
-
-COMP_METHOD *COMP_rle(void)
- {
- return(&rle_method);
- }
-
-static int rle_compress_block(COMP_CTX *ctx, unsigned char *out,
- unsigned int olen, unsigned char *in, unsigned int ilen)
- {
- /* int i; */
-
- if (ilen == 0 || olen < (ilen-1))
- {
- /* ZZZZZZZZZZZZZZZZZZZZZZ */
- return(-1);
- }
-
- *(out++)=0;
- memcpy(out,in,ilen);
- return(ilen+1);
- }
-
-static int rle_expand_block(COMP_CTX *ctx, unsigned char *out,
- unsigned int olen, unsigned char *in, unsigned int ilen)
- {
- int i;
-
- if (olen < (ilen-1))
- {
- /* ZZZZZZZZZZZZZZZZZZZZZZ */
- return(-1);
- }
-
- i= *(in++);
- if (i == 0)
- {
- memcpy(out,in,ilen-1);
- }
- return(ilen-1);
- }