Commit 276e079e authored by Tadeu Martins Chamuinho Bastos's avatar Tadeu Martins Chamuinho Bastos
Browse files

[OPENBUS-2367] Registro de certificados permite especificação de entidades de

nome vazio
- Levanta exceção BAD_PARAM (minor code 0) caso o identificador da entidade seja
  vazio



git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/core/branches/02_00_00@144863 ae0415b3-e90b-0410-900d-d0be9363c56b
parent 4c021a50
......@@ -115,6 +115,9 @@ end
-- IDL operations
function CertificateRegistry:registerCertificate(entity, certificate)
if entity == "" then
BAD_PARAM{ completed = "COMPLETED_NO", minor = 0 }
end
local certobj, errmsg = decodecertificate(certificate)
if not certobj then
InvalidCertificate{entity=entity,message=errmsg}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment