cvmfs/signature.cc
bool SignatureManager::KeysMatch() {
  if (!certificate_ || !private_key_)
    return false;

  bool result = false;
  const unsigned char *sign_me = reinterpret_cast<const unsigned char *>
                                   ("sign me");
  unsigned char *signature = NULL;
  unsigned signature_size;
  if (Sign(sign_me, 7, &signature, &signature_size) &&
      Verify(sign_me, 7, signature, signature_size))
  {
    result = true;
  }
  if (signature) free(signature);
  return result;
}
/**
 * Checks, whether the loaded certificate and the loaded private key match.
 *
 * \return True, if private key and certificate match, false otherwise.
 */
Checks, whether the loaded certificate and the loaded private key match.
\return True, if private key and certificate match, false otherwise.
Checks whether the loaded certificate and the loaded private key match . \ return True if private key and certificate match false otherwise .
bool SignatureManager::KeysMatch() {
  if (!certificate_ || !private_key_)
    return false;
  bool result = false;
  const unsigned char *sign_me = reinterpret_cast<const unsigned char *>
                                   ("sign me");
  unsigned char *signature = NULL;
  unsigned signature_size;
  if (Sign(sign_me, 7, &signature, &signature_size) &&
      Verify(sign_me, 7, signature, signature_size))
  {
    result = true;
  }
  if (signature) free(signature);
  return result;
}
bool SignatureManager :: KeysMatch ( ) { if ( ! certificate_ || ! private_key_ ) return false ; bool result = false ; const unsigned char * sign_me = reinterpret_cast < const unsigned char * > ( " " ) ; unsigned char * signature = NULL ; unsigned signature_size ; if ( Sign ( sign_me , 7 , & signature , & signature_size ) && Verify ( sign_me , 7 , signature , signature_size ) ) { result = true ; } if ( signature ) free ( signature ) ; return result ; }
Checks, whether the loaded certificate and the loaded private key match.
Checks whether the loaded certificate and the loaded private key match .