Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
phpmyemail
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
teria
phpmyemail
Commits
9488401a
Commit
9488401a
authored
Aug 25, 2014
by
Nickilo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug ssl variable globale sslReady
parent
dc09dd61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
phpmyemail_util.c
phpmyemail_util.c
+5
-6
phpmyemail_util.h
phpmyemail_util.h
+0
-3
No files found.
phpmyemail_util.c
View file @
9488401a
...
...
@@ -53,7 +53,7 @@ void readsmtp (SSL *ssl) {
while
(
loopCount
<
10
&&
found
==
0
)
{
loopCount
++
;
if
(
ssl
Ready
==
1
)
{
if
(
ssl
)
{
zend_printf
(
"SSL"
);
int
longueur
=
SSL_read
(
ssl
,
buf
,
PACKET_SIZE
);
buf
[
longueur
]
=
'\0'
;
/* Positionner le caractere de fin de chaine pour ne pas avoir les dechets du buffer */
...
...
@@ -87,7 +87,7 @@ void readsmtp (SSL *ssl) {
*
*/
void
sendsmtp
(
char
*
msg
,
SSL
*
ssl
)
{
if
(
ssl
Ready
==
1
)
{
if
(
ssl
)
{
if
(
INI_BOOL
(
"mail_php.enable_debug"
))
{
zend_printf
(
msg
);
}
...
...
@@ -110,7 +110,7 @@ void sendsmtp (char *msg,SSL *ssl) {
*
*/
void
writesmtp
(
char
*
msg
,
SSL
*
ssl
)
{
if
(
ssl
Ready
==
1
)
{
if
(
ssl
)
{
if
(
INI_BOOL
(
"mail_php.enable_debug"
))
{
zend_printf
(
msg
);
}
...
...
@@ -207,7 +207,7 @@ void appli (char *login,char *pass, char *from, char *to, char *reply, char *sub
size_t
passBase64Len
;
int
nb
;
char
*
toone
;
SSL
*
ssl
;
/* Contexte SSL */
SSL
*
ssl
=
NULL
;
/* Contexte SSL */
/* Encodage login */
loginBase64Len
=
base64_encode
(
login
,
strlen
(
login
),
&
loginBase64
);
...
...
@@ -262,7 +262,6 @@ void appli (char *login,char *pass, char *from, char *to, char *reply, char *sub
SSL_connect
(
ssl
);
/* Ecrire sur le SSL */
sslReady
=
1
;
zend_printf
(
"TLS INIT OK
\n
"
);
writesmtp
(
INI_STR
(
"mail_php.smtp_helo"
),
ssl
);
...
...
@@ -360,7 +359,7 @@ void appli (char *login,char *pass, char *from, char *to, char *reply, char *sub
sendsmtp
(
"
\r\n
"
,
ssl
);
sendsmtp
(
"QUIT
\r\n
"
,
ssl
);
if
(
ssl
Ready
==
1
)
{
if
(
ssl
)
{
SSL_shutdown
(
ssl
);
}
}
...
...
phpmyemail_util.h
View file @
9488401a
...
...
@@ -36,9 +36,6 @@ int to_server_socket = -1;
/* Configuration du ssl on ou off */
int
sslOn
=
0
;
/* Le ssl est pret */
int
sslReady
=
0
;
/* Constante pour l'encodage en base 64 */
static
const
char
table64
[]
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment