mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-23 09:54:55 +02:00
Use normalised route authorizations in the API. (Closes #126)
This commit is contained in:
+3
-3
@@ -14,7 +14,7 @@ use crate::commons::api::RepositoryUpdate;
|
||||
use crate::commons::api::{
|
||||
AddChildRequest, AuthorizationFmtError, CertAuthInit, ChildAuthRequest, ChildHandle, Handle,
|
||||
ParentCaContact, ParentCaReq, ParentHandle, PublisherHandle, ResSetErr, ResourceSet,
|
||||
RouteAuthorizationUpdates, Token, UpdateChildRequest,
|
||||
RoaDefinitionUpdates, Token, UpdateChildRequest,
|
||||
};
|
||||
use crate::commons::remote::id::IdCert;
|
||||
use crate::commons::remote::rfc8183;
|
||||
@@ -919,7 +919,7 @@ impl Options {
|
||||
let path = matches.value_of("delta").map(PathBuf::from).unwrap();
|
||||
let bytes = file::read(&path)?;
|
||||
let updates_str = unsafe { from_utf8_unchecked(&bytes) };
|
||||
RouteAuthorizationUpdates::from_str(updates_str)?
|
||||
RoaDefinitionUpdates::from_str(updates_str)?
|
||||
};
|
||||
|
||||
let command = Command::CertAuth(CaCommand::RouteAuthorizationsUpdate(my_ca, updates));
|
||||
@@ -1175,7 +1175,7 @@ pub enum CaCommand {
|
||||
RouteAuthorizationsList(Handle),
|
||||
|
||||
// Update the Route Authorizations for this CA
|
||||
RouteAuthorizationsUpdate(Handle, RouteAuthorizationUpdates),
|
||||
RouteAuthorizationsUpdate(Handle, RoaDefinitionUpdates),
|
||||
|
||||
// Show details for this CA
|
||||
Show(Handle),
|
||||
|
||||
+2
-1
@@ -2,10 +2,11 @@ use std::str::{from_utf8_unchecked, FromStr};
|
||||
|
||||
use crate::commons::api::{
|
||||
CaRepoDetails, CertAuthHistory, CertAuthInfo, CertAuthList, CurrentObjects, CurrentRepoState,
|
||||
ParentCaContact, PublisherDetails, PublisherList, RepositoryContact, RouteAuthorization,
|
||||
ParentCaContact, PublisherDetails, PublisherList, RepositoryContact,
|
||||
};
|
||||
use crate::commons::remote::api::ClientInfo;
|
||||
use crate::commons::remote::rfc8183;
|
||||
use crate::daemon::ca::RouteAuthorization;
|
||||
|
||||
//------------ ApiResponse ---------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user