view cinst/mozilla.c @ 113:02ad0922c01f

Start over (only leave comments).
author Sascha Wilde <wilde@intevation.de>
date Fri, 21 Mar 2014 17:12:53 +0100
parents 0c8ea71a89cd
children 24ca8e2ceecf
line wrap: on
line source
/* @file Mozilla installation process
 *
 * Reads from stdin a list of instructions in the form:
 *
 * I:<base64 DER econded certificate>\r\n
 * R:<base64 DER econded certificate>\r\n
 * ...
 *
 * The maximum size of an input line is 1000 characters
 * (including the \r\n) at the end of the line.
 *
 * Certificates marked with I: will be installed and the ones
 * marked with R: will be searched and if available removed from
 * the databases.
 *
 * This tool tries to find all NSS databases the user has
 * access to and to execute the instructions on all of them.
 *
 * If there are other processes accessing the databases the caller
 * has to ensure that those are terminated before this process is
 * executed.
 *
 * Returns 0 on success (Even when no stores where found) an error value
 * as defined in errorcodes.h otherwise.
 *
 * Success messages are written to stdout. Errors to stderr. For logging
 * purposes each installation / removal of a certificate will be reported
 * with the profile name that it modified.
 *
 */

/* @brief IniParser for mozilla profiles.ini
 *
 * Parse data to find values formed in
 *
 * [Profile99]
 * IsRelative=1
 * Path=Profiles/fooo.bar
 *
 * or
 * [Profile0]
 * IsRelative=0
 * Path=c:\foo\bar\baz
 *
 * Mozilla also accepts the ini file on Windows even if it is UTF-16
 * encoded.
 * */

#include <errorcodes.h>
#include <stdlib.h>

#ifndef _WIN32
#define UNIX 1
#else
#define UNIX 0
#endif


/**
 * @brief Get a list of all mozilla profile directories 
 *
 * Read the profiles.ini and extract all profile paths from that.
 *
 * @param[inifile] path of the profile.ini to read.
 * @return NULL terminated array of strings containing containing the
 * absolute path of the profile directories. The array needs to
 * be freed by the caller.
 */
//char**
//get_profile_dirs(char* inifile)


int
main()
{
  exit(0);
}

http://wald.intevation.org/projects/trustbridge/