int FingerPrintFromBlob()

in src/oslogin_sshca.cc [286:298]


int FingerPrintFromBlob(const char *blob, char **fingerprint) {
  if (blob == NULL || strlen(blob) == 0) {
    SysLogErr("Could not parse/extract fingerprint from SSH CA cert's extension: \"blob\" is empty.");
    return 0;
  }

  if (fingerprint == NULL) {
    SysLogErr("Could not parse/extract fingerprint from SSH CA cert's extension: \"fingerprint\" is NULL.");
    return 0;
  }

  return GetByoidFingerPrint(blob, fingerprint);
}