Loading gatekeeperd/gatekeeperd.cpp +4 −2 Original line number Original line Diff line number Diff line Loading @@ -234,11 +234,13 @@ public: virtual int verify(uint32_t uid, virtual int verify(uint32_t uid, const uint8_t *enrolled_password_handle, uint32_t enrolled_password_handle_length, const uint8_t *enrolled_password_handle, uint32_t enrolled_password_handle_length, const uint8_t *provided_password, uint32_t provided_password_length, bool *request_reenroll) { const uint8_t *provided_password, uint32_t provided_password_length, bool *request_reenroll) { uint8_t *auth_token; uint8_t *auth_token = nullptr; uint32_t auth_token_length; uint32_t auth_token_length; return verifyChallenge(uid, 0, enrolled_password_handle, enrolled_password_handle_length, int ret = verifyChallenge(uid, 0, enrolled_password_handle, enrolled_password_handle_length, provided_password, provided_password_length, provided_password, provided_password_length, &auth_token, &auth_token_length, request_reenroll); &auth_token, &auth_token_length, request_reenroll); delete [] auth_token; return ret; } } virtual int verifyChallenge(uint32_t uid, uint64_t challenge, virtual int verifyChallenge(uint32_t uid, uint64_t challenge, Loading Loading
gatekeeperd/gatekeeperd.cpp +4 −2 Original line number Original line Diff line number Diff line Loading @@ -234,11 +234,13 @@ public: virtual int verify(uint32_t uid, virtual int verify(uint32_t uid, const uint8_t *enrolled_password_handle, uint32_t enrolled_password_handle_length, const uint8_t *enrolled_password_handle, uint32_t enrolled_password_handle_length, const uint8_t *provided_password, uint32_t provided_password_length, bool *request_reenroll) { const uint8_t *provided_password, uint32_t provided_password_length, bool *request_reenroll) { uint8_t *auth_token; uint8_t *auth_token = nullptr; uint32_t auth_token_length; uint32_t auth_token_length; return verifyChallenge(uid, 0, enrolled_password_handle, enrolled_password_handle_length, int ret = verifyChallenge(uid, 0, enrolled_password_handle, enrolled_password_handle_length, provided_password, provided_password_length, provided_password, provided_password_length, &auth_token, &auth_token_length, request_reenroll); &auth_token, &auth_token_length, request_reenroll); delete [] auth_token; return ret; } } virtual int verifyChallenge(uint32_t uid, uint64_t challenge, virtual int verifyChallenge(uint32_t uid, uint64_t challenge, Loading