- merge with master
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Wed, 29 Mar 2017 12:26:33 +0000 (14:26 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Wed, 29 Mar 2017 12:26:33 +0000 (14:26 +0200)
1  2 
configure.ac
po/POTFILES.in
src/Makefile.am
src/exit/gnunet-daemon-exit.c
src/gns/gns_api.c
src/identity-provider/gnunet-service-identity-provider.c
src/identity-provider/identity_provider_api.c
src/identity-provider/plugin_rest_identity_provider.c
src/include/gnunet_credential_service.h
src/include/gnunet_protocols.h

diff --cc configure.ac
Simple merge
diff --cc po/POTFILES.in
Simple merge
diff --cc src/Makefile.am
Simple merge
Simple merge
Simple merge
index cd0c7698983421cbdcb6c76be5caf183e590abd5,907b28ba9e3d2585eb19adbef4f1924aabe18efe..5ea7b28219f97903f1407f9f8ca6ada23114cb75
@@@ -602,9 -580,10 +602,10 @@@ issue_token_cont (struct GNUNET_REST_Re
    }
    nonce_str = GNUNET_CONTAINER_multihashmap_get (handle->conndata_handle->url_param_map,
                                                   &key);
+   GNUNET_assert (NULL != nonce_str);
    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
 -            "Request nonce: %s\n",
 -            nonce_str);
 +              "Request nonce: %s\n",
 +              nonce_str);
    GNUNET_assert (1 == sscanf (nonce_str, "%"SCNu64, &nonce));
  
    //Get expiration for token from URL parameter
@@@ -888,7 -867,8 +890,8 @@@ exchange_cont (void *cls
      return;
    }
    nonce_str = GNUNET_CONTAINER_multihashmap_get (handle->conndata_handle->url_param_map,
 -                                                  &key);
 +                                                 &key);
+   GNUNET_assert (NULL != nonce_str);
    GNUNET_assert (1 == sscanf (nonce_str, "%"SCNu64, &expected_nonce));
  
    if (ticket_nonce != expected_nonce)
index d04c0a253c40548140cbcc9212f3cdef8a58eb4f,9e765c12b22f5bb9fdfd37518c6c366383e2a7c5..6c9b477ea625ba1e52f4c118e1ccbe451eb4b13f
@@@ -227,56 -75,26 +227,54 @@@ GNUNET_CREDENTIAL_disconnect (struct GN
  
  
  /**
 - * Iterator called on obtained result for a Credential lookup.
 + * Iterator called on obtained result for an attribute verification.
   *
   * @param cls closure
 - * @param issuer the issuer chain
 - * @param issuer_len length of issuer chain
 - * @param value the value returned
 + * @param d_count the number of delegations processed
 + * @param delegation_chain the delegations processed
 + * @param c_count the number of credentials found
 + * @param credential the credentials
   */
 -typedef void
 -(*GNUNET_CREDENTIAL_LookupResultProcessor) (void *cls,
 -                                            struct GNUNET_IDENTITY_Ego *issuer,
 -                                            uint16_t issuer_len,
 -                                            const struct GNUNET_CREDENTIAL_Value *value);
 +typedef void (*GNUNET_CREDENTIAL_CredentialResultProcessor) (void *cls,
 +                                                         unsigned int d_count,
 +                                                         struct GNUNET_CREDENTIAL_Delegation *delegation_chain,
 +                                                         unsigned int c_count,
 +                                                         struct GNUNET_CREDENTIAL_Credential *credential);
  
 +/**
 + * Iterator called on obtained result for an attribute delegation.
 + *
 + * @param cls closure
 + * @param success GNUNET_YES if successful
 + * @param result the record data that can be handed to the subject
 + */
 +typedef void (*GNUNET_CREDENTIAL_DelegateResultProcessor) (void *cls,
 +                                                           uint32_t success);
  
  /**
 - * Perform an asynchronous lookup operation for a credential.
 + * Iterator called on obtained result for an attribute delegation removal.
 + *
 + * @param cls closure
 + * @param success GNUNET_YES if successful
 + * @param result the record data that can be handed to the subject
 + */
 +typedef void (*GNUNET_CREDENTIAL_RemoveDelegateResultProcessor) (void *cls,
 +                                                                 uint32_t success);
 +
 +
 +/**
 + * Performs attribute verification.
 + * Checks if there is a delegation chain from
 + * attribute ``issuer_attribute'' issued by the issuer
 + * with public key ``issuer_key'' maps to the attribute
 + * ``subject_attribute'' claimed by the subject with key
 + * ``subject_key''
   *
   * @param handle handle to the Credential service
 - * @param credential the credential to look up
 - * @param subject Ego to check the credential for
 + * @param issuer_key the issuer public key
 + * @param issuer_attribute the issuer attribute
 + * @param subject_key the subject public key
 + * @param subject_attribute the attribute claimed by the subject
   * @param proc function to call on result
   * @param proc_cls closure for processor
   * @return handle to the queued request
Simple merge