summaryrefslogtreecommitdiffstats
path: root/common/userpref.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/userpref.c')
-rw-r--r--common/userpref.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/userpref.c b/common/userpref.c
index fd7022c..f88a123 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -159,7 +159,7 @@ const char *userpref_get_config_dir()
159 __config_dir = string_concat(base_config_dir, DIR_SEP_S, USERPREF_CONFIG_DIR, NULL); 159 __config_dir = string_concat(base_config_dir, DIR_SEP_S, USERPREF_CONFIG_DIR, NULL);
160 160
161 if (__config_dir) { 161 if (__config_dir) {
162 int i = strlen(__config_dir)-1; 162 int i = strlen(__config_dir)-1;
163 while ((i > 0) && (__config_dir[i] == DIR_SEP)) { 163 while ((i > 0) && (__config_dir[i] == DIR_SEP)) {
164 __config_dir[i--] = '\0'; 164 __config_dir[i--] = '\0';
165 } 165 }
@@ -232,7 +232,7 @@ int userpref_has_pair_record(const char *udid)
232 * @param count The number of UDIDs found. This parameter can be NULL if it 232 * @param count The number of UDIDs found. This parameter can be NULL if it
233 * is not required. 233 * is not required.
234 * 234 *
235 * @return USERPREF_E_SUCCESS on success, or USERPREF_E_INVALID_ARG if the 235 * @return USERPREF_E_SUCCESS on success, or USERPREF_E_INVALID_ARG if the
236 * list parameter is not pointing to NULL. 236 * list parameter is not pointing to NULL.
237 */ 237 */
238userpref_error_t userpref_get_paired_udids(char ***list, unsigned int *count) 238userpref_error_t userpref_get_paired_udids(char ***list, unsigned int *count)
@@ -491,7 +491,7 @@ userpref_error_t pair_record_generate_keys_and_certs(plist_t pair_record, key_da
491 X509_set_notAfter(host_cert, asn1time); 491 X509_set_notAfter(host_cert, asn1time);
492 ASN1_TIME_free(asn1time); 492 ASN1_TIME_free(asn1time);
493 493
494 /* use host public key for host cert */ 494 /* use host public key for host cert */
495 X509_set_pubkey(host_cert, host_pkey); 495 X509_set_pubkey(host_cert, host_pkey);
496 496
497 /* sign host cert with root private key */ 497 /* sign host cert with root private key */