included pem.h and x509.h; fixed comparison bug
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 12 Sep 2007 07:56:00 +0000 (07:56 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 12 Sep 2007 07:56:00 +0000 (07:56 -0000)
src/libstrongswan/crypto/ac.c

index 7ef91fc..7ecf235 100644 (file)
 #include <debug.h>
 
 #include <asn1/asn1.h>
+#include <asn1/pem.h>
+#include <crypto/x509.h>
 #include <utils/identification.h>
 #include <utils/linked_list.h>
+
 #include "ac.h"
 
 #define ACERT_WARNING_INTERVAL 1       /* day */
@@ -283,7 +286,7 @@ static void ietfAttr_list(linked_list_t *list, FILE *out)
                                {
                                        int oid = known_oid(attr->value);
 
-                                       if (oid = OID_UNKNOWN)
+                                       if (oid == OID_UNKNOWN)
                                        {
                                                fprintf(out, "0x#B", &attr->value);
                                        }