summaryrefslogtreecommitdiffstats
path: root/plugins/check_smtp.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-02-12 12:03:58 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-02-12 12:03:58 (GMT)
commitabbad00edd7f5f3d33ae77a9d5ac338e5bea5fb3 (patch)
tree0d55fb4d8e5ad7a9376d1bccdea31104cbecacfe /plugins/check_smtp.c
parentbd7029a99b0c2974265c6665638ef14a052f42ab (diff)
downloadmonitoring-plugins-abbad00edd7f5f3d33ae77a9d5ac338e5bea5fb3.tar.gz
Import Gnulib floorf and base64 and removed our old base64 library.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1926 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_smtp.c')
-rw-r--r--plugins/check_smtp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index d3e4f42..3310bce 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -366,7 +366,8 @@ main (int argc, char **argv)
366 } 366 }
367 367
368 /* encode authuser with base64 */ 368 /* encode authuser with base64 */
369 abuf = base64 (authuser, strlen(authuser)); 369 base64_encode_alloc (authuser, strlen(authuser), &abuf);
370 /* FIXME: abuf shouldn't have enough space to strcat a '\r\n' into it. */
370 strcat (abuf, "\r\n"); 371 strcat (abuf, "\r\n");
371 my_send(abuf, strlen(abuf)); 372 my_send(abuf, strlen(abuf));
372 if (verbose) 373 if (verbose)
@@ -386,7 +387,8 @@ main (int argc, char **argv)
386 break; 387 break;
387 } 388 }
388 /* encode authpass with base64 */ 389 /* encode authpass with base64 */
389 abuf = base64 (authpass, strlen(authpass)); 390 base64_encode_alloc (authpass, strlen(authpass), &abuf);
391 /* FIXME: abuf shouldn't have enough space to strcat a '\r\n' into it. */
390 strcat (abuf, "\r\n"); 392 strcat (abuf, "\r\n");
391 my_send(abuf, strlen(abuf)); 393 my_send(abuf, strlen(abuf));
392 if (verbose) { 394 if (verbose) {