summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/comp/c_rle.c
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2017-03-31 16:34:14 +0800
committerPeter Jones <pjones@redhat.com>2017-04-11 10:42:18 -0400
commit0f3dfc01e2d5e7df882c963dd8dc4a0dfbfc96ad (patch)
tree3e7253b5ca3b922f4007e593e8a30511e1a81eb1 /Cryptlib/OpenSSL/crypto/comp/c_rle.c
parent4da6ac819510c7cc4ba21d7a735d69b45daa5873 (diff)
downloadefi-boot-shim-0f3dfc01e2d5e7df882c963dd8dc4a0dfbfc96ad.tar.gz
efi-boot-shim-0f3dfc01e2d5e7df882c963dd8dc4a0dfbfc96ad.zip
Cryptlib/OpenSSL: update to openssl 1.1.0e
- Delete the old openssl files and use the script to copy the new files - Add "-DNO_SYSLOG" to CFLAGS and add crypto/include to the include path Signed-off-by: Gary Lin <glin@suse.com>
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/comp/c_rle.c')
-rw-r--r--Cryptlib/OpenSSL/crypto/comp/c_rle.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/Cryptlib/OpenSSL/crypto/comp/c_rle.c b/Cryptlib/OpenSSL/crypto/comp/c_rle.c
deleted file mode 100644
index e9aabbd1..00000000
--- a/Cryptlib/OpenSSL/crypto/comp/c_rle.c
+++ /dev/null
@@ -1,62 +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);
-}