session server REFACTOR move nc_base64der_to_cert

Moved this function from session_server_tls file, because it shall be
used by more different files in the future.
diff --git a/src/session_p.h b/src/session_p.h
index ce55492..8f037e2 100644
--- a/src/session_p.h
+++ b/src/session_p.h
@@ -756,6 +756,14 @@
  */
 int nc_is_pk_subject_public_key_info(const char *b64);
 
+/**
+ * @brief Import a Base64 DER encoded certificate data.
+ *
+ * @param[in] data Base64 DER encoded certificate data.
+ * @return Imported certificate on success, NULL on error.
+ */
+void * nc_base64der_to_cert(const char *data);
+
 #endif /* NC_ENABLED_SSH_TLS */
 
 void *nc_realloc(void *ptr, size_t size);