Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Show more breadcrumbs
Main
Synchronet
Commits
3e8e114d
Commit
3e8e114d
authored
1 year ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Fix new Windows build warnings and errors
parent
ab8d98a7
No related branches found
No related tags found
1 merge request
!455
Update branch with changes from master
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/load_cfg.c
+5
-5
5 additions, 5 deletions
src/sbbs3/load_cfg.c
src/sbbs3/ssl.h
+1
-1
1 addition, 1 deletion
src/sbbs3/ssl.h
with
6 additions
and
6 deletions
src/sbbs3/load_cfg.c
+
5
−
5
View file @
3e8e114d
...
...
@@ -26,8 +26,8 @@
#include
"datewrap.h"
#include
"text.h"
/* TOTAL_TEXT */
#include
"ini_file.h"
#ifdef
USE_CRYPTLIB
#include
"
cryptlib
.h"
#if
def
ined(SBBS) && defined(
USE_CRYPTLIB
)
#include
"
ssl
.h"
#endif
static
void
prep_cfg
(
scfg_t
*
cfg
);
...
...
@@ -36,7 +36,7 @@ static void free_attr_cfg(scfg_t* cfg);
int
lprintf
(
int
level
,
const
char
*
fmt
,
...);
/* log output */
/* readtext.c */
char
*
readtext
(
long
*
line
,
FILE
*
stream
,
long
dflt
);
char
*
readtext
(
int
*
line
,
FILE
*
stream
,
long
dflt
);
// Returns 0-based text string index
int
get_text_num
(
const
char
*
id
)
...
...
@@ -348,11 +348,11 @@ void prep_cfg(scfg_t* cfg)
void
free_cfg
(
scfg_t
*
cfg
)
{
#ifdef
USE_CRYPTLIB
#if
def
ined(SBBS) && defined(
USE_CRYPTLIB
)
lock_ssl_cert
();
if
(
cfg
->
tls_certificate
!=
-
1
&&
cfg
->
prepped
)
{
cryptDestroyContext
(
cfg
->
tls_certificate
);
cfg
->
tls_certificate
=
=
-
1
;
cfg
->
tls_certificate
=
-
1
;
}
unlock_ssl_cert
();
#endif
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/ssl.h
+
1
−
1
View file @
3e8e114d
#ifndef SBBS_SSL_H
#define SBBS_SSL_H
#include
"
sbbs.h"
// For DLLEXPORT
#include
"
dllexport.h"
#include
<cryptlib.h>
#include
"scfgdefs.h"
#include
<stdbool.h>
...
...
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