1 Star 0 Fork 22

阿翔与山海经/opengauss-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
openssl3-adptor.patch 3.64 KB
一键复制 编辑 原始数据 按行查看 历史
zhangxubo 提交于 2023-02-11 14:38 . adaptor openssl 3.0 compile
diff -crN '--exclude=.git' openGauss-server-2.1.0/build/script/gauss.spec openGauss-server-2.1.0-edit/build/script/gauss.spec
*** openGauss-server-2.1.0/build/script/gauss.spec 2021-12-13 16:23:09.000000000 +0800
--- openGauss-server-2.1.0-edit/build/script/gauss.spec 2023-02-11 14:44:29.667973775 +0800
***************
*** 1,2 ****
! PRODUCT=GaussDB Kernel
! VERSION=V500R002C00
--- 1,2 ----
! PRODUCT=openGauss
! VERSION=2.1.0
diff -crN '--exclude=.git' openGauss-server-2.1.0/src/common/interfaces/libpq/client_logic_hooks/encryption_hooks/sm2_enc_key.cpp openGauss-server-2.1.0-edit/src/common/interfaces/libpq/client_logic_hooks/encryption_hooks/sm2_enc_key.cpp
*** openGauss-server-2.1.0/src/common/interfaces/libpq/client_logic_hooks/encryption_hooks/sm2_enc_key.cpp 2021-12-13 16:23:09.000000000 +0800
--- openGauss-server-2.1.0-edit/src/common/interfaces/libpq/client_logic_hooks/encryption_hooks/sm2_enc_key.cpp 2023-02-11 14:29:21.000000000 +0800
***************
*** 152,165 ****
EVP_PKEY_free(public_evp_key);
return CMKEM_EVP_ERR;
}
!
ret = EVP_PKEY_set_alias_type(public_evp_key, EVP_PKEY_SM2);
if (ret != 1) {
cmkem_errmsg("EVP_PKEY_set_alias_type to EVP_PKEY_SM2 failed!");
EVP_PKEY_free(public_evp_key);
return CMKEM_EVP_ERR;
}
!
/* do cipher. */
ctx = EVP_PKEY_CTX_new(public_evp_key, NULL);
EVP_PKEY_free(public_evp_key);
--- 152,165 ----
EVP_PKEY_free(public_evp_key);
return CMKEM_EVP_ERR;
}
! #ifndef WITH_OPENEULER_OS
ret = EVP_PKEY_set_alias_type(public_evp_key, EVP_PKEY_SM2);
if (ret != 1) {
cmkem_errmsg("EVP_PKEY_set_alias_type to EVP_PKEY_SM2 failed!");
EVP_PKEY_free(public_evp_key);
return CMKEM_EVP_ERR;
}
! #endif
/* do cipher. */
ctx = EVP_PKEY_CTX_new(public_evp_key, NULL);
EVP_PKEY_free(public_evp_key);
***************
*** 242,255 ****
EVP_PKEY_free(private_evp_key);
return CMKEM_EVP_ERR;
}
!
ret = EVP_PKEY_set_alias_type(private_evp_key, EVP_PKEY_SM2);
if (ret != 1) {
cmkem_errmsg("EVP_PKEY_set_alias_type to EVP_PKEY_SM2 failed!");
EVP_PKEY_free(private_evp_key);
return CMKEM_EVP_ERR;
}
!
/* do cipher. */
ctx = EVP_PKEY_CTX_new(private_evp_key, NULL);
EVP_PKEY_free(private_evp_key);
--- 242,255 ----
EVP_PKEY_free(private_evp_key);
return CMKEM_EVP_ERR;
}
! #ifndef WITH_OPENEULER_OS
ret = EVP_PKEY_set_alias_type(private_evp_key, EVP_PKEY_SM2);
if (ret != 1) {
cmkem_errmsg("EVP_PKEY_set_alias_type to EVP_PKEY_SM2 failed!");
EVP_PKEY_free(private_evp_key);
return CMKEM_EVP_ERR;
}
! #endif
/* do cipher. */
ctx = EVP_PKEY_CTX_new(private_evp_key, NULL);
EVP_PKEY_free(private_evp_key);
diff -crN '--exclude=.git' openGauss-server-2.1.0/src/include/gs_policy/policy_common.h openGauss-server-2.1.0-edit/src/include/gs_policy/policy_common.h
*** openGauss-server-2.1.0/src/include/gs_policy/policy_common.h 2021-12-13 16:23:09.000000000 +0800
--- openGauss-server-2.1.0-edit/src/include/gs_policy/policy_common.h 2023-02-11 15:46:27.722886953 +0800
***************
*** 22,27 ****
--- 22,28 ----
*/
#ifndef _GS_POLICY_COMMON_H
#define _GS_POLICY_COMMON_H
+ #include <vector>
#include "nodes/parsenodes.h"
#include "postgres.h"
***************
*** 30,35 ****
--- 31,38 ----
#include "gs_vector.h"
#include "pgaudit.h"
+ using std::vector;
+
struct GsPolicyFQDN {
GsPolicyFQDN():m_value_schema(0), m_value_object(0), is_function(false){}
Oid m_value_schema; /* schema */
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/a-xiang-and-shanhaijing/opengauss-server.git
git@gitee.com:a-xiang-and-shanhaijing/opengauss-server.git
a-xiang-and-shanhaijing
opengauss-server
opengauss-server
master

搜索帮助