MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / Build

Method Build

extra/yassl/src/yassl_imp.cpp:2002–2027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2000
2001
2002void CertificateRequest::Build()
2003{
2004 certificate_types_[0] = rsa_sign;
2005 certificate_types_[1] = dss_sign;
2006
2007 typeTotal_ = 2;
2008
2009 uint16 authCount = 0;
2010 uint16 authSz = 0;
2011
2012 for (int j = 0; j < authCount; j++) {
2013 int sz = REQUEST_HEADER + MIN_DIS_SIZE;
2014 DistinguishedName dn;
2015 certificate_authorities_.push_back(dn = NEW_YS byte[sz]);
2016
2017 opaque tmp[REQUEST_HEADER];
2018 c16toa(MIN_DIS_SIZE, tmp);
2019 memcpy(dn, tmp, sizeof(tmp));
2020
2021 // fill w/ junk for now
2022 memcpy(dn, tmp, MIN_DIS_SIZE);
2023 authSz += sz;
2024 }
2025
2026 set_length(SIZEOF_ENUM + typeTotal_ + REQUEST_HEADER + authSz);
2027}
2028
2029
2030input_buffer& CertificateRequest::set(input_buffer& in)

Callers 2

sendCertificateRequestFunction · 0.80
sendCertificateVerifyFunction · 0.80

Calls 13

c16toaFunction · 0.85
build_certHashesFunction · 0.85
EncodeDSA_SignatureFunction · 0.85
get_keyTypeMethod · 0.80
get_privateKeyMethod · 0.80
get_privateKeyLengthMethod · 0.80
get_cipherLengthMethod · 0.80
get_randomMethod · 0.80
push_backMethod · 0.45
resetMethod · 0.45
getMethod · 0.45
signMethod · 0.45

Tested by

no test coverage detected