Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maestro-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maestro
maestro-core
Commits
27fa44ef
Commit
27fa44ef
authored
3 years ago
by
Utz-Uwe Haus
Browse files
Options
Downloads
Patches
Plain Diff
implement mstro_drc_init_from_credential()
parent
33b3178f
No related branches found
No related tags found
1 merge request
!45
Draft: Resolve "Check if shm provider can be enabled after libfabric 1.14 is in our tree"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
maestro/drc.c
+33
-1
33 additions, 1 deletion
maestro/drc.c
with
33 additions
and
1 deletion
maestro/drc.c
+
33
−
1
View file @
27fa44ef
...
...
@@ -347,7 +347,39 @@ mstro_status
mstro_drc_init_from_credential
(
mstro_drc_info
*
result_p
,
uint32_t
credential
)
{
return
MSTRO_UNIMPL
;
mstro_status
stat
=
MSTRO_UNIMPL
;
uint32_t
id
=
credential
;
int
ret
;
if
(
result_p
==
NULL
)
return
MSTRO_INVOUT
;
*
result_p
=
malloc
(
sizeof
(
struct
mstro_drc_info_
));
if
(
*
result_p
)
{
drc_info_handle_t
info
;
(
*
result_p
)
->
drc_id
=
id
;
ret
=
drc_access
((
*
result_p
)
->
drc_id
,
0
,
&
info
);
if
(
ret
!=
DRC_SUCCESS
)
{
ERR
(
"Failed to drc_access credential %"
PRIu32
": %d
\n
"
,
id
,
ret
);
goto
BAILOUT_FREE
;
}
mstro_drc_init_internal
(
*
result_p
,
info
);
DEBUG
(
"Accessing DRC credential %d (OOB: is %s), cookie %"
PRIx64
")
\n
"
,
(
*
result_p
)
->
drc_id
,
(
*
result_p
)
->
serialized_id
,
(
*
result_p
)
->
auth_key
.
raw
.
protection_key
);
stat
=
MSTRO_OK
;
}
else
{
stat
=
MSTRO_NOMEM
;
}
goto
BAILOUT
;
BAILOUT_FREE:
NFREE
(
*
result_p
);
BAILOUT:
return
stat
;
}
...
...
This diff is collapsed.
Click to expand it.
Utz-Uwe Haus
@haus1
mentioned in issue
#97 (closed)
·
3 years ago
mentioned in issue
#97 (closed)
mentioned in issue #97
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment