add support for smartcards in charon by using the ENGINE API provided by OpenSSL...
[strongswan.git] / src / libstrongswan / credentials / builder.c
index 42d183a..0bca198 100644 (file)
 
 #include "builder.h"
 
-ENUM(builder_part_names, BUILD_BLOB_ASN1_DER, BUILD_END,
+ENUM(builder_part_names, BUILD_FROM_FILE, BUILD_END,
+       "BUILD_FROM_FILE",
+       "BUILD_AGENT_SOCKET",
        "BUILD_BLOB_ASN1_DER",
+       "BUILD_BLOB_ASN1_PEM",
        "BUILD_KEY_SIZE",
        "BUILD_SIGNING_KEY",
        "BUILD_SIGNING_CERT",
@@ -27,8 +30,21 @@ ENUM(builder_part_names, BUILD_BLOB_ASN1_DER, BUILD_END,
        "BUILD_ISSUER_ALTNAME",
        "BUILD_NOT_BEFORE_TIME",
        "BUILD_NOT_AFTER_TIME",
+       "BUILD_SERIAL",
+       "BUILD_IETF_GROUP_ATTR",
        "BUILD_CA_CERT",
        "BUILD_CERT",
        "BUILD_X509_FLAG",
+       "BUILD_SMARTCARD_KEYID",
+       "BUILD_SMARTCARD_PIN",
        "BUILD_END",
 );
+
+/**
+ * See header.
+ */
+void* builder_free(builder_t *this)
+{
+       free(this);
+       return NULL;
+}