added .gitignore files to NM applet
[strongswan.git] / src / charon / sa / ike_sa_id.c
index c143fc0..94c5405 100644 (file)
@@ -1,10 +1,3 @@
-/**
- * @file ike_sa_id.c
- *
- * @brief Implementation of ike_sa_id_t.
- *
- */
-
 /*
  * Copyright (C) 2005-2006 Martin Willi
  * Copyright (C) 2005 Jan Hutter
  * for more details.
  */
 
-
 #include "ike_sa_id.h"
 
-#include <printf.h>
 #include <stdio.h>
 
 
@@ -153,33 +144,6 @@ static ike_sa_id_t* clone_(private_ike_sa_id_t *this)
 }
 
 /**
- * output handler in printf()
- */
-static int print(FILE *stream, const struct printf_info *info,
-                                const void *const *args)
-{
-       private_ike_sa_id_t *this = *((private_ike_sa_id_t**)(args[0]));
-       
-       if (this == NULL)
-       {
-               return fprintf(stream, "(null)");
-       }
-       return fprintf(stream, "0x%0llx_i%s 0x%0llx_r%s",
-                                  this->initiator_spi,
-                                  this->is_initiator_flag ? "*" : "",
-                                  this->responder_spi,
-                                  this->is_initiator_flag ? "" : "*");
-}
-
-/**
- * register printf() handlers
- */
-static void __attribute__ ((constructor))print_register()
-{
-       register_printf_function(PRINTF_IKE_SA_ID, print, arginfo_ptr);
-}
-
-/**
  * Implementation of ike_sa_id_t.destroy.
  */
 static void destroy(private_ike_sa_id_t *this)