Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-crypto-python
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-crypto-python
Commits
d2bd935d
Commit
d2bd935d
authored
4 years ago
by
alexey.stratulat
Browse files
Options
Downloads
Patches
Plain Diff
[+] Added a wrapper implementation over the dap_cert_add_folder function.
parent
bc4970d5
Branches
master
rct
Branches containing commit
No related tags found
1 merge request
!6
[+] Added a wrapper implementation over the dap_cert_add_folder function.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/wrapping_cert.h
+8
-1
8 additions, 1 deletion
include/wrapping_cert.h
src/wrapping_cert.c
+16
-0
16 additions, 0 deletions
src/wrapping_cert.c
with
24 additions
and
1 deletion
include/wrapping_cert.h
+
8
−
1
View file @
d2bd935d
...
...
@@ -4,6 +4,9 @@
#include
"dap_common.h"
#include
"dap_cert.h"
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
PyCryptoCert
{
...
...
@@ -42,7 +45,7 @@ static PyTypeObject dapCrypto_dapCryptoCertType = {
0
,
/* tp_as_buffer */
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
/* tp_flags */
"Crypto object
s
"
,
/* tp_doc */
"Crypto
cert
object"
,
/* tp_doc */
0
,
/* tp_traverse */
0
,
/* tp_clear */
0
,
/* tp_richcompare */
...
...
@@ -62,3 +65,7 @@ static PyTypeObject dapCrypto_dapCryptoCertType = {
PyType_GenericNew
,
/* tp_new */
};
#ifdef __cplusplus
}
#endif
This diff is collapsed.
Click to expand it.
src/wrapping_cert.c
0 → 100644
+
16
−
0
View file @
d2bd935d
#include
"wrapping_cert.h"
int
dap_cert_init_py
(
void
){
return
dap_cert_init
();
}
void
dap_cert_deinit_py
(
void
){
dap_cert_deinit
();
}
PyObject
*
dap_cert_add_folder_py
(
PyObject
*
self
,
PyObject
*
args
){
(
void
)
self
;
const
char
*
a_folder_path
;
if
(
!
PyArg_ParseTuple
(
args
,
"s"
,
&
a_folder_path
))
return
NULL
;
dap_cert_add_folder
(
a_folder_path
);
return
PyLong_FromLong
(
0
);
}
This diff is collapsed.
Click to expand it.
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