Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AKMC-113: Add SADB Interfaces for MySQL/Inmemory configurability and basic implementation. #7

Merged
merged 11 commits into from
Nov 16, 2021

Conversation

IbraheemYSaleh
Copy link
Contributor

No description provided.

@@ -0,0 +1,36 @@
CREATE DATABASE IF NOT EXISTS sadb;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like the directory structure for the SADB / maria / SQL scripts. We were just talking this week about doing something like this to keep things separated for the different SA implementations.

@@ -0,0 +1,23 @@
/* Copyright (C) 2009 - 2017 National Aeronautics and Space Administration. All Foreign Rights are Reserved to the U.S. Government.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for us - we need to update copyrights and change the email address to the new mailing list.

#ifdef NOS3 //NOS3/cFS build is ready
#include "common_types.h"
#include "osapi.h"
#else //Assume build outside of NOS3/cFS infrastructure
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good assumption that the build is outside nos3/cFS by default. We're still having discussions about how to ensure that we maintain the spacecraft build/functionality. Right now, we're leaning toward CryptoLib being a generic lib, and we will go back and adapt for spacecraft. (This is a role reversal for how CryptoLib was first designed.)


#include "crypto_structs.h"

typedef struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like this. Clean and straightforward.

@dccutrig
Copy link
Contributor

Overall looked pretty good to me. Was able to pare down the diff that shows up on github with git diff --ignore-all-space akmc-113..collab_main -- fsw/src/crypto.c Excited for this merge and more progress

@@ -239,6 +251,39 @@ static int32 sadb_get_sa_from_spi(uint16 spi,SecurityAssociation_t** security_as
return status;
}

static int32 sadb_get_operational_sa_from_gvcid(uint8 tfvn,uint16 scid,uint16 vcid,uint8 mapid,SecurityAssociation_t** security_association)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I like this and how it clears up the old SA stuff

@dccutrig
Copy link
Contributor

Looks good - I like the direction the SA DB API is taking.

@IbraheemYSaleh IbraheemYSaleh merged commit 82560ff into collab_main Nov 16, 2021
@IbraheemYSaleh IbraheemYSaleh deleted the AKMC-113 branch November 17, 2021 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants