-fix the fix
[oweals/gnunet.git] / src / identity-provider / identity_provider.h
index 12b96a51c021ea072d75f912bc806e432cc1aae1..682a207607c40d83077a8a43c7b468c282b7a50b 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     Copyright (C) 2016 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2016 GNUnet e.V.
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public Liceidentity as published
@@ -41,7 +41,7 @@ struct GNUNET_IDENTITY_PROVIDER_Token
   /**
    * The JWT representation of the identity token
    */
-  const char *data;
+  char *data;
 };
 
 /**
@@ -52,7 +52,7 @@ struct GNUNET_IDENTITY_PROVIDER_Ticket
   /**
    * The Base64 representation of the ticket
    */
-  const char *data;
+  char *data;
 };
 
 /**
@@ -65,7 +65,7 @@ struct GNUNET_IDENTITY_PROVIDER_IssueResultMessage
    */
   struct GNUNET_MessageHeader header;
 
-  /* followed by 0-terminated ticket */
+  /* followed by 0-terminated label,ticket,token */
 
 };
 
@@ -81,10 +81,10 @@ struct GNUNET_IDENTITY_PROVIDER_ExchangeResultMessage
   struct GNUNET_MessageHeader header;
 
   /**
-   * Number of bytes in token string including 0-termination, in NBO;
+   * Nonce found in ticket. NBO
    * 0 on error.
    */
-  uint16_t name_len GNUNET_PACKED;
+  uint64_t ticket_nonce GNUNET_PACKED;
 
   /* followed by 0-terminated token */