Skip to content

Instantly share code, notes, and snippets.

@alireza-ebrahimi
Created June 18, 2018 18:08
Show Gist options
  • Save alireza-ebrahimi/c18223e3c5cd5f250014b2f44aa42b53 to your computer and use it in GitHub Desktop.
Save alireza-ebrahimi/c18223e3c5cd5f250014b2f44aa42b53 to your computer and use it in GitHub Desktop.
size_t count2 = serverPublicKeysFingerprints.size();
for (uint32_t a = 0; a < count1; a++) {
for (uint32_t b = 0; b < count2; b++) {
if ((uint64_t) result->server_public_key_fingerprints[a] == serverPublicKeysFingerprints[b]) {
keyFingerprint = result->server_public_key_fingerprints[a];
key = serverPublicKeys[a];
break;
}
}
if (keyFingerprint != 0) {
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment