小编jjb*_*bss的帖子

cpp:'.' 之前的预期主要表达式 令牌

我有以下代码:

class SSLHashSHA1
{
    SSLHashSHA1();
    ~SSLHashSHA1();
    public:
        static OSStatus update(string*, int*);
        static OSStatus final (string*, string*);
};

OSStatus SSLHashSHA1::update(string* ctx, int* ran){
    return 0;
}

OSStatus SSLHashSHA1::final(string* ctx, string* out){
    return 0;
}

static OSStatus SSLVerifySignedServerKeyExchange(
    SSLContext *ctx, bool isRsa, SSLBuffer signedParams, uint8_t *signature, uint16_t signatureLen)
{
    OSStatus err;

    if ((err = SSLHashSHA1.update(&hashCtx, &serverRandom)) != 0)
        goto fail;
    if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0)
        goto fail;
        goto fail;
    if ((err = SSLHashSHA1.final(&hashCtx, &hashOut)) != 0)
        goto fail;


    fail:
        SSLFreeBuffer(&signedHashes); …
Run Code Online (Sandbox Code Playgroud)

c++ static class static-members

0
推荐指数
1
解决办法
1014
查看次数

标签 统计

c++ ×1

class ×1

static ×1

static-members ×1