C语言中是否有可用的库来验证XML签名?我只能从http://santuario.apache.org/cindex.html找到一个C++库.
我想使用任何可用的开源库在C中编写XML签名验证代码.我正在尝试使用xmlsec.我安装了http://www.zlatkovic.com/libxml.en.html中提到的依赖库.但是当我尝试编译http://www.aleksey.com/xmlsec/api/xmlsec-notes-verify-x509.html中给出的示例代码时,我收到一个错误
"./xmlsec/crypto.h:61:2:错误:#error没有定义加密库".
我正在尝试使用gcc在ubuntu中编译它.
有人可以指出如何定义crptolibrary(在这种情况下我想使用openssl).我使用"./configure make makeinstall"命令安装了openssl.
我对使用哪种模式设计以下场景感到困惑,
Interface GearBox {
int upshift();
int downshift();
int reverse();
}
AutoGearBox implements GearBox{...}
ManualGearBox implements GearBox{...}
Run Code Online (Sandbox Code Playgroud)
现在我想将DualClutchGearBox添加到层次结构中.以前的所有变速箱都是单离合器.我该怎么做呢?
装饰师 - >
DualClutchDecorator implements GearBox{
DualClutchDecorator(GearBox box){...}
}
Run Code Online (Sandbox Code Playgroud)
用桥 - >
GearBox{
GearBoxImpl impl;
....
}
AutoGearBox implements GearBox{...}
ManualGearBox implements GearBox{...}
abstract class GearBoxImpl{}
SingleClutchImpl extends GearBoxImpl{...}
DualClutchImpl extends GearBoxImpl{...}
Run Code Online (Sandbox Code Playgroud)
哪一个更好,为什么?
c ×2
xmlsec ×2
bridge ×1
cryptography ×1
decorator ×1
java ×1
openssl ×1
verification ×1
xml ×1