summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/internal/comp.h1
-rw-r--r--include/openssl/comp.h3
-rw-r--r--include/openssl/comperr.h4
-rw-r--r--include/openssl/obj_mac.h4
4 files changed, 12 insertions, 0 deletions
diff --git a/include/internal/comp.h b/include/internal/comp.h
index 45cab6c720..c48c29d562 100644
--- a/include/internal/comp.h
+++ b/include/internal/comp.h
@@ -11,3 +11,4 @@
void ossl_comp_zlib_cleanup(void);
void ossl_comp_brotli_cleanup(void);
+void ossl_comp_zstd_cleanup(void);
diff --git a/include/openssl/comp.h b/include/openssl/comp.h
index 28f674de4d..b1a9554cb8 100644
--- a/include/openssl/comp.h
+++ b/include/openssl/comp.h
@@ -42,6 +42,8 @@ int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
COMP_METHOD *COMP_zlib(void);
COMP_METHOD *COMP_brotli(void);
COMP_METHOD *COMP_brotli_oneshot(void);
+COMP_METHOD *COMP_zstd(void);
+COMP_METHOD *COMP_zstd_oneshot(void);
#ifndef OPENSSL_NO_DEPRECATED_1_1_0
# define COMP_zlib_cleanup() while(0) continue
@@ -52,6 +54,7 @@ COMP_METHOD *COMP_brotli_oneshot(void);
const BIO_METHOD *BIO_f_zlib(void);
# endif
const BIO_METHOD *BIO_f_brotli(void);
+const BIO_METHOD *BIO_f_zstd(void);
# endif
diff --git a/include/openssl/comperr.h b/include/openssl/comperr.h
index 31dcda8957..e075506e68 100644
--- a/include/openssl/comperr.h
+++ b/include/openssl/comperr.h
@@ -31,6 +31,10 @@
# define COMP_R_ZLIB_DEFLATE_ERROR 99
# define COMP_R_ZLIB_INFLATE_ERROR 100
# define COMP_R_ZLIB_NOT_SUPPORTED 101
+# define COMP_R_ZSTD_COMPRESS_ERROR 107
+# define COMP_R_ZSTD_DECODE_ERROR 108
+# define COMP_R_ZSTD_DECOMPRESS_ERROR 109
+# define COMP_R_ZSTD_NOT_SUPPORTED 110
# endif
#endif
diff --git a/include/openssl/obj_mac.h b/include/openssl/obj_mac.h
index daa5233294..2fcf6132f4 100644
--- a/include/openssl/obj_mac.h
+++ b/include/openssl/obj_mac.h
@@ -5597,6 +5597,10 @@
#define LN_brotli "Brotli compression"
#define NID_brotli 1288
+#define SN_zstd "zstd"
+#define LN_zstd "Zstandard compression"
+#define NID_zstd 1289
+
#endif /* OPENSSL_OBJ_MAC_H */
#ifndef OPENSSL_NO_DEPRECATED_3_0